|
@@ -12,6 +12,9 @@
|
|
|
<result property="hgzh" column="hgzh"/>
|
|
|
<result property="fzjg" column="fzjg"/>
|
|
|
<result property="fzDate" column="fz_date"/>
|
|
|
+ <!-- 新增字段映射 -->
|
|
|
+ <result property="jsdw" column="jsdw"/>
|
|
|
+ <result property="gljsgcghxkh" column="gljsgcghxkh"/>
|
|
|
<result property="hasOnchain" column="has_onchain"/>
|
|
|
<result property="creatorId" column="creator_id"/>
|
|
|
<result property="createdAt" column="created_at"/>
|
|
@@ -27,10 +30,12 @@
|
|
|
<!-- 添加记录 -->
|
|
|
<insert id="add" parameterType="com.siwei.apply.domain.Tdhyhs">
|
|
|
INSERT INTO t_tdhyhs (id, project_id, ydwz, hgzh, fzjg, fz_date,
|
|
|
+ jsdw, gljsgcghxkh,
|
|
|
has_onchain, creator_id,
|
|
|
- created_at, updated_at)
|
|
|
+ created_at, updated_at)
|
|
|
VALUES (#{id}, #{projectId}, #{ydwz}, #{hgzh}, #{fzjg}, #{fzDate},
|
|
|
- false, #{creatorId},
|
|
|
+ #{jsdw}, #{gljsgcghxkh},
|
|
|
+ false, #{creatorId},
|
|
|
now(), now())
|
|
|
</insert>
|
|
|
|
|
@@ -50,6 +55,9 @@
|
|
|
<if test="hgzh != null">hgzh = #{hgzh},</if>
|
|
|
<if test="fzjg != null">fzjg = #{fzjg},</if>
|
|
|
<if test="fzDate != null">fz_date = #{fzDate},</if>
|
|
|
+ <!-- 新增字段可更新 -->
|
|
|
+ <if test="jsdw != null">jsdw = #{jsdw},</if>
|
|
|
+ <if test="gljsgcghxkh != null">gljsgcghxkh = #{gljsgcghxkh},</if>
|
|
|
<if test="hasOnchain != null">has_onchain = #{hasOnchain},</if>
|
|
|
updated_at = now()
|
|
|
</set>
|