ソースを参照

土地供应添加单位

gushoubang 2 ヶ月 前
コミット
e00d4a6907

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

@@ -27,6 +27,7 @@ public class Tdgy {
     private Map<String, Object> attachment;     // 附件
     private Boolean hasOnchain;    // 是否上链
     private String creatorId;      // 创建人ID
+    private String gdUnit;        // 供地单位
 
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date createdAt;        // 创建时间

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

@@ -17,4 +17,5 @@ public class TdgyVo {
     private String hbcrfapfwh;     // 用地划拨/出让方案批复文号
     private String hbcrhtbh;       // 划拨决定书/出让合同编号
     private String hbcrhtDate;       // 划拨决定书/出让合同日期
+    private String gdUnit;        // 供地单位
 }

+ 4 - 2
siwei-modules/siwei-apply/src/main/resources/mapper/TdgyMapper.xml

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