Sfoglia il codice sorgente

增加sourceId字段2

chenendian 2 mesi fa
parent
commit
dd6bd02c3c

+ 1 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/Gyjsydjfwscdj.java

@@ -33,4 +33,5 @@ public class Gyjsydjfwscdj extends BaseId {
     private Date createdAt;        // 创建时间
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date updatedAt;        // 更新时间
+    private String sourceId;       // 来源ID
 }

+ 1 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/Gyjsydscdj.java

@@ -33,4 +33,5 @@ public class Gyjsydscdj extends BaseId{
     private Date createdAt;        // 创建时间
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date updatedAt;        // 更新时间
+    private String sourceId;       // 来源ID
 }

+ 1 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/vo/GyjsydjfwscdjVo.java

@@ -23,4 +23,5 @@ public class GyjsydjfwscdjVo {
     private String ftmj;           // 分摊面积
     private String ftmjDw;         // 分摊面积单位
     private String bz;            // 备注(数据清单)
+    private String sourceId;       // 来源ID
 }

+ 1 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/vo/GyjsydscdjVo.java

@@ -20,4 +20,5 @@ public class GyjsydscdjVo {
     private String bdczh;          // 不动产证号
     private String djjg;           // 登记结构
     private String djDate;         // 登记日期
+    private String sourceId;       // 来源ID
 }

+ 3 - 2
siwei-modules/siwei-apply/src/main/resources/mapper/GyjsydjfwscdjMapper.xml

@@ -36,10 +36,10 @@
     <insert id="add" parameterType="com.siwei.apply.domain.Gyjsydjfwscdj">
         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)
+                                     bz, has_onchain, creator_id, created_at, updated_at, source_id)
         VALUES (#{id}, #{projectId}, #{ywh}, #{gzdgzsj}, #{kfdw}, #{bdcqk},
                 #{jzmj}, #{jzmjDw}, #{tnmj}, #{tnmjDw}, #{ftmj}, #{ftmjDw},
-                #{bz}, false, #{creatorId}, now(), now())
+                #{bz}, false, #{creatorId}, now(), now(), #{sourceId})
     </insert>
 
     <!-- 根据项目ID获取记录(返回全部,按创建时间升序) -->
@@ -74,6 +74,7 @@
             <if test="ftmjDw != null">ftmj_dw = #{ftmjDw},</if>
             <if test="bz != null">bz = #{bz},</if>
             <if test="hasOnchain != null">has_onchain = #{hasOnchain},</if>
+            <if test="sourceId != null">source_id = #{sourceId},</if>
             updated_at = now()
         </set>
         WHERE id = #{id}

+ 3 - 2
siwei-modules/siwei-apply/src/main/resources/mapper/GyjsydscdjMapper.xml

@@ -33,10 +33,10 @@
 
     <insert id="add" parameterType="com.siwei.apply.domain.Gyjsydscdj">
         INSERT INTO t_gyjsydscdj (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)
+                                  has_onchain, creator_id, created_at, updated_at, source_id)
         VALUES (#{id}, #{projectId}, #{qlr}, #{gyqk}, #{zl}, #{qllx}, #{qlxz}, #{tdyt}, #{area}, #{areaUnit}, #{bdcdyh}, #{bdczh},
                 #{djjg}, #{djDate},
-                #{hasOnchain}, #{creatorId}, now(), now())
+                #{hasOnchain}, #{creatorId}, now(), now(), #{sourceId})
     </insert>
 
     <!-- 根据项目ID获取记录(返回全部,按创建时间升序) -->
@@ -72,6 +72,7 @@
             <if test="djjg != null">djjg = #{djjg},</if>
             <if test="djDate != null">dj_date = #{djDate},</if>
             <if test="hasOnchain != null">has_onchain = #{hasOnchain},</if>
+            <if test="sourceId != null">source_id = #{sourceId},</if>
             updated_at = now()
         </set>
         WHERE id = #{id}