|
|
@@ -8,19 +8,17 @@
|
|
|
<resultMap id="BaseResultMap" type="com.siwei.apply.domain.Gyjsydjfwscdj">
|
|
|
<id property="id" column="id"/>
|
|
|
<result property="projectId" column="project_id"/>
|
|
|
- <result property="qlr" column="qlr"/>
|
|
|
- <result property="gyqk" column="gyqk"/>
|
|
|
- <result property="zl" column="zl"/>
|
|
|
- <result property="qllx" column="qllx"/>
|
|
|
- <result property="qlxz" column="qlxz"/>
|
|
|
- <result property="tdyt" column="tdyt"/>
|
|
|
- <result property="area" column="area"/>
|
|
|
- <!-- 新增:面积单位映射 -->
|
|
|
- <result property="areaUnit" column="area_unit"/>
|
|
|
- <result property="bdcdyh" column="bdcdyh"/>
|
|
|
- <result property="bdczh" column="bdczh"/>
|
|
|
- <result property="djjg" column="djjg"/>
|
|
|
- <result property="djDate" column="dj_date"/>
|
|
|
+ <result property="ywh" column="ywh"/>
|
|
|
+ <result property="gzdgzsj" column="gzdgzsj"/>
|
|
|
+ <result property="kfdw" column="kfdw"/>
|
|
|
+ <result property="bdcqk" column="bdcqk"/>
|
|
|
+ <result property="jzmj" column="jzmj"/>
|
|
|
+ <result property="jzmjDw" column="jzmj_dw"/>
|
|
|
+ <result property="tnmj" column="tnmj"/>
|
|
|
+ <result property="tnmjDw" column="tnmj_dw"/>
|
|
|
+ <result property="ftmj" column="ftmj"/>
|
|
|
+ <result property="ftmjDw" column="ftmj_dw"/>
|
|
|
+ <result property="bz" column="bz"/>
|
|
|
<result property="hasOnchain" column="has_onchain"/>
|
|
|
<result property="creatorId" column="creator_id"/>
|
|
|
<result property="createdAt" column="created_at"/>
|
|
|
@@ -35,14 +33,12 @@
|
|
|
|
|
|
<!-- 添加记录 -->
|
|
|
<insert id="add" parameterType="com.siwei.apply.domain.Gyjsydjfwscdj">
|
|
|
- INSERT INTO t_gyjsydjfwscdj (id, project_id, qlr, gyqk, zl,
|
|
|
- qllx, qlxz, tdyt, area, area_unit, bdcdyh,
|
|
|
- bdczh, djjg, dj_date, has_onchain, creator_id,
|
|
|
- created_at, updated_at)
|
|
|
- VALUES (#{id}, #{projectId}, #{qlr}, #{gyqk}, #{zl},
|
|
|
- #{qllx}, #{qlxz}, #{tdyt}, #{area}, #{areaUnit}, #{bdcdyh},
|
|
|
- #{bdczh}, #{djjg}, #{djDate}, false, #{creatorId},
|
|
|
- now(), now())
|
|
|
+ INSERT INTO t_gyjsydjfwscdj (id, project_id, ywh, gzdgzsj, kfdw, bdcqk,
|
|
|
+ jzmj, jzmj_dw, tnmj, tnmj_dw, ftmj, ftmj_dw,
|
|
|
+ bz, has_onchain, creator_id, created_at, updated_at)
|
|
|
+ VALUES (#{id}, #{projectId}, #{ywh}, #{gzdgzsj}, #{kfdw}, #{bdcqk},
|
|
|
+ #{jzmj}, #{jzmjDw}, #{tnmj}, #{tnmjDw}, #{ftmj}, #{ftmjDw},
|
|
|
+ #{bz}, false, #{creatorId}, now(), now())
|
|
|
</insert>
|
|
|
|
|
|
<!-- 根据项目ID获取记录(返回全部,按创建时间升序) -->
|
|
|
@@ -65,19 +61,17 @@
|
|
|
UPDATE t_gyjsydjfwscdj
|
|
|
<set>
|
|
|
<if test="projectId != null">project_id = #{projectId},</if>
|
|
|
- <if test="qlr != null">qlr = #{qlr},</if>
|
|
|
- <if test="gyqk != null">gyqk = #{gyqk},</if>
|
|
|
- <if test="zl != null">zl = #{zl},</if>
|
|
|
- <if test="qllx != null">qllx = #{qllx},</if>
|
|
|
- <if test="qlxz != null">qlxz = #{qlxz},</if>
|
|
|
- <if test="tdyt != null">tdyt = #{tdyt},</if>
|
|
|
- <if test="area != null">area = #{area},</if>
|
|
|
- <!-- 新增:面积单位可选更新 -->
|
|
|
- <if test="areaUnit != null">area_unit = #{areaUnit},</if>
|
|
|
- <if test="bdcdyh != null">bdcdyh = #{bdcdyh},</if>
|
|
|
- <if test="bdczh != null">bdczh = #{bdczh},</if>
|
|
|
- <if test="djjg != null">djjg = #{djjg},</if>
|
|
|
- <if test="djDate != null">dj_date = #{djDate},</if>
|
|
|
+ <if test="ywh != null">ywh = #{ywh},</if>
|
|
|
+ <if test="gzdgzsj != null">gzdgzsj = #{gzdgzsj},</if>
|
|
|
+ <if test="kfdw != null">kfdw = #{kfdw},</if>
|
|
|
+ <if test="bdcqk != null">bdcqk = #{bdcqk},</if>
|
|
|
+ <if test="jzmj != null">jzmj = #{jzmj},</if>
|
|
|
+ <if test="jzmjDw != null">jzmj_dw = #{jzmjDw},</if>
|
|
|
+ <if test="tnmj != null">tnmj = #{tnmj},</if>
|
|
|
+ <if test="tnmjDw != null">tnmj_dw = #{tnmjDw},</if>
|
|
|
+ <if test="ftmj != null">ftmj = #{ftmj},</if>
|
|
|
+ <if test="ftmjDw != null">ftmj_dw = #{ftmjDw},</if>
|
|
|
+ <if test="bz != null">bz = #{bz},</if>
|
|
|
<if test="hasOnchain != null">has_onchain = #{hasOnchain},</if>
|
|
|
updated_at = now()
|
|
|
</set>
|