|
@@ -10,6 +10,8 @@
|
|
|
<result property="projectId" column="project_id"/>
|
|
|
<result property="dkbm" column="dkbm"/>
|
|
|
<result property="area" column="area"/>
|
|
|
+ <!-- 新增:面积单位映射 -->
|
|
|
+ <result property="areaUnit" column="area_unit"/>
|
|
|
<result property="ydxz" column="ydxz"/>
|
|
|
<result property="ydwz" column="ydwz"/>
|
|
|
<result property="cjbh" column="cjbh"/>
|
|
@@ -29,9 +31,9 @@
|
|
|
|
|
|
<!-- 添加记录 -->
|
|
|
<insert id="add" parameterType="com.siwei.apply.domain.Tjyydhx">
|
|
|
- INSERT INTO t_tjyydhx (id, project_id, dkbm, area, ydxz, ydwz,
|
|
|
+ INSERT INTO t_tjyydhx (id, project_id, dkbm, area, area_unit, ydxz, ydwz,
|
|
|
cjbh, cj_date, cjyj, creator_id, has_onchain, created_at, updated_at)
|
|
|
- VALUES (#{id}, #{projectId}, #{dkbm}, #{area}, #{ydxz}, #{ydwz},
|
|
|
+ VALUES (#{id}, #{projectId}, #{dkbm}, #{area}, #{areaUnit}, #{ydxz}, #{ydwz},
|
|
|
#{cjbh}, #{cjDate}, #{cjyj}, #{creatorId},false, now(), now())
|
|
|
</insert>
|
|
|
|
|
@@ -49,6 +51,8 @@
|
|
|
<if test="projectId != null">project_id = #{projectId},</if>
|
|
|
<if test="dkbm != null">dkbm = #{dkbm},</if>
|
|
|
<if test="area != null">area = #{area},</if>
|
|
|
+ <!-- 新增:面积单位可选更新 -->
|
|
|
+ <if test="areaUnit != null">area_unit = #{areaUnit},</if>
|
|
|
<if test="ydxz != null">ydxz = #{ydxz},</if>
|
|
|
<if test="ydwz != null">ydwz = #{ydwz},</if>
|
|
|
<if test="cjbh != null">cjbh = #{cjbh},</if>
|