Jelajahi Sumber

用地报批单位添加

gushoubang 2 bulan lalu
induk
melakukan
acb4b09f43

+ 3 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/Ydbp.java

@@ -31,6 +31,9 @@ public class Ydbp {
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
     private Date updatedAt; // 更新时间
 
+    private String ydUnit; // 用地面积单位
+    private String zsUnit; // 征收面积单位
+
     public void generateId() {
         this.id = UUID.randomUUID().toString();
     }

+ 3 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/vo/YdbpVo.java

@@ -16,4 +16,7 @@ public class YdbpVo {
     private String bpDate;// 报批日期
     private String pfwh;// 批复文号
     private String pfDate;// 批复日期
+
+    private String ydUnit; // 用地面积单位
+    private String zsUnit; // 征收面积单位
 }

+ 6 - 2
siwei-modules/siwei-apply/src/main/resources/mapper/YdbpMapper.xml

@@ -9,7 +9,9 @@
         <result property="projectId" column="project_id"/>
         <result property="tdyt" column="tdyt"/>
         <result property="ydArea" column="yd_area"/>
+        <result property="ydUnit" column="yd_unit"/>
         <result property="zsArea" column="zs_area"/>
+        <result property="zsUnit" column="zs_unit"/>
         <result property="hasZZ" column="has_zz"/>
         <result property="bpDate" column="bp_date"/>
         <result property="pfwh" column="pfwh"/>
@@ -27,9 +29,9 @@
     </select>
     <!-- 插入语句 -->
     <insert id="add" parameterType="com.siwei.apply.domain.Ydbp">
-        INSERT INTO t_ydbp (id, project_id, tdyt, yd_area, zs_area, has_zz,
+        INSERT INTO t_ydbp (id, project_id, tdyt, yd_area, yd_unit, zs_area, zs_unit, has_zz,
                             bp_date, pfwh, pf_date, has_onchain, creator_id, created_at, updated_at)
-        VALUES (#{id}, #{projectId}, #{tdyt}, #{ydArea}, #{zsArea}, #{hasZZ},
+        VALUES (#{id}, #{projectId}, #{tdyt}, #{ydArea}, #{ydUnit}, #{zsArea}, #{zsUnit}, #{hasZZ},
                 #{bpDate}, #{pfwh}, #{pfDate}, false, #{creatorId}, now(), now())
     </insert>
 
@@ -48,7 +50,9 @@
             <if test="projectId != null">project_id = #{projectId},</if>
             <if test="tdyt != null">tdyt = #{tdyt},</if>
             <if test="ydArea != null">yd_area = #{ydArea},</if>
+            <if test="ydUnit != null">yd_unit = #{ydUnit},</if>
             <if test="zsArea != null">zs_area = #{zsArea},</if>
+            <if test="zsUnit != null">zs_unit = #{zsUnit},</if>
             <if test="hasZZ != null">has_zz = #{hasZZ},</if>
             <if test="bpDate != null">bp_date = #{bpDate},</if>
             <if test="pfwh != null">pfwh = #{pfwh},</if>