|
@@ -22,6 +22,7 @@
|
|
<result property="creatorId" column="creator_id"/>
|
|
<result property="creatorId" column="creator_id"/>
|
|
<result property="createdAt" column="created_at"/>
|
|
<result property="createdAt" column="created_at"/>
|
|
<result property="updatedAt" column="updated_at"/>
|
|
<result property="updatedAt" column="updated_at"/>
|
|
|
|
+ <result property="gdUnit" column="gd_unit"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<select id="isExit" resultType="Boolean">
|
|
<select id="isExit" resultType="Boolean">
|
|
@@ -34,11 +35,11 @@
|
|
<insert id="add" parameterType="com.siwei.apply.domain.Tdgy">
|
|
<insert id="add" parameterType="com.siwei.apply.domain.Tdgy">
|
|
INSERT INTO t_tdgy (id, project_id, srf, tdyt, jswz,
|
|
INSERT INTO t_tdgy (id, project_id, srf, tdyt, jswz,
|
|
gd_area, gd_type, has_zz, hbcrfapfwh, hbcrhtbh,
|
|
gd_area, gd_type, has_zz, hbcrfapfwh, hbcrhtbh,
|
|
- hbcrht_date, has_onchain, creator_id,
|
|
|
|
|
|
+ hbcrht_date, gd_unit, has_onchain, creator_id,
|
|
created_at, updated_at)
|
|
created_at, updated_at)
|
|
VALUES (#{id}, #{projectId}, #{srf}, #{tdyt}, #{jswz},
|
|
VALUES (#{id}, #{projectId}, #{srf}, #{tdyt}, #{jswz},
|
|
#{gdArea}, #{gdType}, #{hasZz}, #{hbcrfapfwh}, #{hbcrhtbh},
|
|
#{gdArea}, #{gdType}, #{hasZz}, #{hbcrfapfwh}, #{hbcrhtbh},
|
|
- #{hbcrhtDate}, false, #{creatorId},
|
|
|
|
|
|
+ #{hbcrhtDate}, #{gdUnit}, false, #{creatorId},
|
|
now(), now())
|
|
now(), now())
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
@@ -64,6 +65,7 @@
|
|
<if test="hbcrhtbh != null">hbcrhtbh = #{hbcrhtbh},</if>
|
|
<if test="hbcrhtbh != null">hbcrhtbh = #{hbcrhtbh},</if>
|
|
<if test="hbcrhtDate != null">hbcrht_date = #{hbcrhtDate},</if>
|
|
<if test="hbcrhtDate != null">hbcrht_date = #{hbcrhtDate},</if>
|
|
<if test="hasOnchain != null">has_onchain = #{hasOnchain},</if>
|
|
<if test="hasOnchain != null">has_onchain = #{hasOnchain},</if>
|
|
|
|
+ <if test="gdUnit != null">gd_unit = #{gdUnit},</if>
|
|
updated_at = now()
|
|
updated_at = now()
|
|
</set>
|
|
</set>
|
|
WHERE id = #{id}
|
|
WHERE id = #{id}
|