傅行帆 4 år sedan
förälder
incheckning
b7b761ec25

+ 8
- 1
src/main/java/com/huiju/estateagents/property/service/impl/BuildingOwnerInfoServiceImpl.java Visa fil

@@ -448,7 +448,14 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
448 448
         List<TpBuildingOwnerInfo> list = (List<TpBuildingOwnerInfo>) map.get("list");
449 449
         
450 450
         //批量插入
451
-        // tpBuildingOwnerInfoMapper.batchInsert(list);
451
+        list.forEach(e -> {
452
+            e.setOrgId(userElement.getOrgId());
453
+            e.setVerifyStatus("0");
454
+            e.setPairStatus("o");
455
+            e.setCreateUser(userElement.getUserId());
456
+            e.setCreateDate(LocalDateTime.now());
457
+        });
458
+        this.saveBatch(list);
452 459
         
453 460
         //构造数据
454 461
         for (TpBuildingOwnerInfo tpBuildingOwnerInfo : list){

+ 5
- 5
src/main/resources/mapper/property/TpBuildingOwnerInfoMapper.xml Visa fil

@@ -66,16 +66,16 @@
66 66
             u.unit_name,
67 67
             u.level_name,
68 68
             u.room_no_name,
69
-            u.id AS userVerifyId,
69
+            u.ta_user_verify_id AS userVerifyId,
70 70
             u.org_id AS orgId,
71
-            u.phone AS ownerTel,
71
+            u.owner_tel AS ownerTel,
72 72
             u.owner_name AS ownerName,
73 73
             u.id_card AS idCard,
74 74
             u.verify_status AS verifyStatus,
75
-            u.verify_name AS updateName,
75
+            u.update_user AS updateName,
76 76
             u.create_date AS createDate
77 77
         FROM
78
-            ta_user_verify u
78
+        tp_building_owner_info u
79 79
         WHERE
80 80
 
81 81
         u.org_id=#{tpBuildingOwnerInfo.orgId,jdbcType=INTEGER}
@@ -98,7 +98,7 @@
98 98
             and u.owner_name like concat('%',#{tpBuildingOwnerInfo.ownerName,jdbcType=VARCHAR},'%')
99 99
         </if>
100 100
         <if test="tpBuildingOwnerInfo.ownerTel != null and tpBuildingOwnerInfo.ownerTel != ''">
101
-            and u.phone like concat('%',#{tpBuildingOwnerInfo.ownerTel,jdbcType=VARCHAR},'%')
101
+            and u.owner_tel like concat('%',#{tpBuildingOwnerInfo.ownerTel,jdbcType=VARCHAR},'%')
102 102
         </if>
103 103
         <if test="tpBuildingOwnerInfo.idCard != null and tpBuildingOwnerInfo.idCard != ''">
104 104
             and u.id_card like concat('%',#{tpBuildingOwnerInfo.idCard,jdbcType=VARCHAR},'%')