|
@@ -4,8 +4,11 @@
|
|
|
<resultMap id="BaseResultMap" type="com.idea.buildManage.model.ParkRoom">
|
|
|
<id column="id" jdbcType="VARCHAR" property="id" />
|
|
|
<result column="build_id" jdbcType="VARCHAR" property="buildId" />
|
|
|
+ <result column="build_name" jdbcType="VARCHAR" property="buildName" />
|
|
|
<result column="disc_id" jdbcType="VARCHAR" property="discId" />
|
|
|
+ <result column="disc_name" jdbcType="VARCHAR" property="discName" />
|
|
|
<result column="group_id" jdbcType="VARCHAR" property="groupId" />
|
|
|
+ <result column="group_name" jdbcType="VARCHAR" property="groupName" />
|
|
|
<result column="room_no" jdbcType="VARCHAR" property="roomNo" />
|
|
|
<result column="nature" jdbcType="VARCHAR" property="nature" />
|
|
|
<result column="floor" jdbcType="VARCHAR" property="floor" />
|
|
@@ -97,11 +100,12 @@
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="Base_Column_List">
|
|
|
- id, build_id, disc_id, group_id, room_no, nature, floor, prediction_internal_area,
|
|
|
- prediction_share_area, prediction_build_area, prediction_land_area, actual_internal_area,
|
|
|
- actual_share_area, actual_build_area, actual_land_area, room_use, room_number, decoration_situation,
|
|
|
- house_type_id, house_type_picture, created_id, created_at, updated_at, updated_id,
|
|
|
- sale_status, sold_status, two_point_two, order_num, is_choose, ncid, nc_code, del_flag
|
|
|
+ id, build_id, build_name, disc_id, disc_name, group_id, group_name, room_no, nature,
|
|
|
+ floor, prediction_internal_area, prediction_share_area, prediction_build_area, prediction_land_area,
|
|
|
+ actual_internal_area, actual_share_area, actual_build_area, actual_land_area, room_use,
|
|
|
+ room_number, decoration_situation, house_type_id, house_type_picture, created_id,
|
|
|
+ created_at, updated_at, updated_id, sale_status, sold_status, two_point_two, order_num,
|
|
|
+ is_choose, ncid, nc_code, del_flag
|
|
|
</sql>
|
|
|
<sql id="Blob_Column_List">
|
|
|
remark
|
|
@@ -155,8 +159,9 @@
|
|
|
</if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.idea.buildManage.model.ParkRoom">
|
|
|
- insert into park_room (id, build_id, disc_id,
|
|
|
- group_id, room_no, nature,
|
|
|
+ insert into park_room (id, build_id, build_name,
|
|
|
+ disc_id, disc_name, group_id,
|
|
|
+ group_name, room_no, nature,
|
|
|
floor, prediction_internal_area, prediction_share_area,
|
|
|
prediction_build_area, prediction_land_area,
|
|
|
actual_internal_area, actual_share_area, actual_build_area,
|
|
@@ -167,8 +172,9 @@
|
|
|
two_point_two, order_num, is_choose,
|
|
|
ncid, nc_code, del_flag,
|
|
|
remark)
|
|
|
- values (#{id,jdbcType=VARCHAR}, #{buildId,jdbcType=VARCHAR}, #{discId,jdbcType=VARCHAR},
|
|
|
- #{groupId,jdbcType=VARCHAR}, #{roomNo,jdbcType=VARCHAR}, #{nature,jdbcType=VARCHAR},
|
|
|
+ values (#{id,jdbcType=VARCHAR}, #{buildId,jdbcType=VARCHAR}, #{buildName,jdbcType=VARCHAR},
|
|
|
+ #{discId,jdbcType=VARCHAR}, #{discName,jdbcType=VARCHAR}, #{groupId,jdbcType=VARCHAR},
|
|
|
+ #{groupName,jdbcType=VARCHAR}, #{roomNo,jdbcType=VARCHAR}, #{nature,jdbcType=VARCHAR},
|
|
|
#{floor,jdbcType=VARCHAR}, #{predictionInternalArea,jdbcType=DOUBLE}, #{predictionShareArea,jdbcType=DOUBLE},
|
|
|
#{predictionBuildArea,jdbcType=DOUBLE}, #{predictionLandArea,jdbcType=DOUBLE},
|
|
|
#{actualInternalArea,jdbcType=DOUBLE}, #{actualShareArea,jdbcType=DOUBLE}, #{actualBuildArea,jdbcType=DOUBLE},
|
|
@@ -189,12 +195,21 @@
|
|
|
<if test="buildId != null">
|
|
|
build_id,
|
|
|
</if>
|
|
|
+ <if test="buildName != null">
|
|
|
+ build_name,
|
|
|
+ </if>
|
|
|
<if test="discId != null">
|
|
|
disc_id,
|
|
|
</if>
|
|
|
+ <if test="discName != null">
|
|
|
+ disc_name,
|
|
|
+ </if>
|
|
|
<if test="groupId != null">
|
|
|
group_id,
|
|
|
</if>
|
|
|
+ <if test="groupName != null">
|
|
|
+ group_name,
|
|
|
+ </if>
|
|
|
<if test="roomNo != null">
|
|
|
room_no,
|
|
|
</if>
|
|
@@ -290,12 +305,21 @@
|
|
|
<if test="buildId != null">
|
|
|
#{buildId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="buildName != null">
|
|
|
+ #{buildName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="discId != null">
|
|
|
#{discId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="discName != null">
|
|
|
+ #{discName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="groupId != null">
|
|
|
#{groupId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="groupName != null">
|
|
|
+ #{groupName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="roomNo != null">
|
|
|
#{roomNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -400,12 +424,21 @@
|
|
|
<if test="record.buildId != null">
|
|
|
build_id = #{record.buildId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.buildName != null">
|
|
|
+ build_name = #{record.buildName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.discId != null">
|
|
|
disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.discName != null">
|
|
|
+ disc_name = #{record.discName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.groupId != null">
|
|
|
group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.groupName != null">
|
|
|
+ group_name = #{record.groupName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="record.roomNo != null">
|
|
|
room_no = #{record.roomNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -502,8 +535,11 @@
|
|
|
update park_room
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
build_id = #{record.buildId,jdbcType=VARCHAR},
|
|
|
+ build_name = #{record.buildName,jdbcType=VARCHAR},
|
|
|
disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
+ disc_name = #{record.discName,jdbcType=VARCHAR},
|
|
|
group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ group_name = #{record.groupName,jdbcType=VARCHAR},
|
|
|
room_no = #{record.roomNo,jdbcType=VARCHAR},
|
|
|
nature = #{record.nature,jdbcType=VARCHAR},
|
|
|
floor = #{record.floor,jdbcType=VARCHAR},
|
|
@@ -541,8 +577,11 @@
|
|
|
update park_room
|
|
|
set id = #{record.id,jdbcType=VARCHAR},
|
|
|
build_id = #{record.buildId,jdbcType=VARCHAR},
|
|
|
+ build_name = #{record.buildName,jdbcType=VARCHAR},
|
|
|
disc_id = #{record.discId,jdbcType=VARCHAR},
|
|
|
+ disc_name = #{record.discName,jdbcType=VARCHAR},
|
|
|
group_id = #{record.groupId,jdbcType=VARCHAR},
|
|
|
+ group_name = #{record.groupName,jdbcType=VARCHAR},
|
|
|
room_no = #{record.roomNo,jdbcType=VARCHAR},
|
|
|
nature = #{record.nature,jdbcType=VARCHAR},
|
|
|
floor = #{record.floor,jdbcType=VARCHAR},
|
|
@@ -581,12 +620,21 @@
|
|
|
<if test="buildId != null">
|
|
|
build_id = #{buildId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="buildName != null">
|
|
|
+ build_name = #{buildName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="discId != null">
|
|
|
disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="discName != null">
|
|
|
+ disc_name = #{discName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="groupId != null">
|
|
|
group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="groupName != null">
|
|
|
+ group_name = #{groupName,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
<if test="roomNo != null">
|
|
|
room_no = #{roomNo,jdbcType=VARCHAR},
|
|
|
</if>
|
|
@@ -680,8 +728,11 @@
|
|
|
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.idea.buildManage.model.ParkRoom">
|
|
|
update park_room
|
|
|
set build_id = #{buildId,jdbcType=VARCHAR},
|
|
|
+ build_name = #{buildName,jdbcType=VARCHAR},
|
|
|
disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ disc_name = #{discName,jdbcType=VARCHAR},
|
|
|
group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ group_name = #{groupName,jdbcType=VARCHAR},
|
|
|
room_no = #{roomNo,jdbcType=VARCHAR},
|
|
|
nature = #{nature,jdbcType=VARCHAR},
|
|
|
floor = #{floor,jdbcType=VARCHAR},
|
|
@@ -716,8 +767,11 @@
|
|
|
<update id="updateByPrimaryKey" parameterType="com.idea.buildManage.model.ParkRoom">
|
|
|
update park_room
|
|
|
set build_id = #{buildId,jdbcType=VARCHAR},
|
|
|
+ build_name = #{buildName,jdbcType=VARCHAR},
|
|
|
disc_id = #{discId,jdbcType=VARCHAR},
|
|
|
+ disc_name = #{discName,jdbcType=VARCHAR},
|
|
|
group_id = #{groupId,jdbcType=VARCHAR},
|
|
|
+ group_name = #{groupName,jdbcType=VARCHAR},
|
|
|
room_no = #{roomNo,jdbcType=VARCHAR},
|
|
|
nature = #{nature,jdbcType=VARCHAR},
|
|
|
floor = #{floor,jdbcType=VARCHAR},
|