1
0
gushoubang 1 сар өмнө
parent
commit
c204eb3a06

+ 4 - 2
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/Tdhyhs.java

@@ -5,7 +5,6 @@ import lombok.Data;
 
 import java.io.Serializable;
 import java.util.Date;
-import java.util.Map;
 import java.util.UUID;
 
 /**
@@ -21,7 +20,10 @@ public class Tdhyhs implements Serializable {
 
     private String fzDate;                // 发证日期
 
-    private Map<String, Object> attachment; // 附件
+    // 新增字段
+    private String jsdw;                // 建设单位
+    private String gljsgcghxkh;         // 关联建设工程规划许可号
+
     private Boolean hasOnchain;         // 是否上链
     private String creatorId;           // 创建人ID
 

+ 3 - 1
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/vo/TdhyhsVo.java

@@ -11,5 +11,7 @@ public class TdhyhsVo {
     private String ydwz;                // 用地位置
     private String hgzh;                // 合格证号
     private String fzjg;                // 发证机关
-    private String fzDate;                // 发证日期
+    private String fzDate;              // 发证日期
+    private String jsdw;                // 建设单位
+    private String gljsgcghxkh;         // 关联建设工程规划许可号
 }

+ 10 - 2
siwei-modules/siwei-apply/src/main/resources/mapper/TdhyhsMapper.xml

@@ -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>