傅行帆 3 anos atrás
pai
commit
f6d0d1cfe0

+ 6
- 0
src/main/java/com/yunzhi/marketing/center/taUser/entity/TaUserVO.java Ver arquivo

@@ -289,4 +289,10 @@ public class TaUserVO implements Serializable {
289 289
      */
290 290
     @TableField(exist = false)
291 291
     private String bossDisplay;
292
+
293
+    /**
294
+     * ta_user 的 userId
295
+     */
296
+    @TableField(exist = false)
297
+    private Integer realUserId;
292 298
 }

+ 2
- 2
src/main/java/com/yunzhi/marketing/xlk/controller/CustomerInfoController.java Ver arquivo

@@ -236,7 +236,7 @@ public class CustomerInfoController extends BaseController {
236 236
                 customerInfo = new CustomerInfo();
237 237
             }
238 238
             customerInfo.setName(customer.getName());
239
-            customerInfo.setSex(customer.getSex());
239
+//            customerInfo.setSex(customer.getSex());
240 240
             customerInfo.setPhone(customer.getPhone());
241 241
             customerInfo.setPicture(customer.getPicture());
242 242
 
@@ -274,7 +274,7 @@ public class CustomerInfoController extends BaseController {
274 274
                 customerInfoVO.setRealtyConsultantPerson(realtyPerson);
275 275
                 // 所属楼盘和 用户信息
276 276
                 LambdaQueryWrapper<TaPersonBuilding> taPersonBuildingLambdaQueryWrapper = new LambdaQueryWrapper<>();
277
-                taPersonBuildingLambdaQueryWrapper.eq(TaPersonBuilding::getPersonId,customer.getRealtyConsultant());
277
+                taPersonBuildingLambdaQueryWrapper.eq(TaPersonBuilding::getPersonId,customer.getRealtyConsultant()).or().eq(TaPersonBuilding::getUserId,realtyPerson.getUserId());
278 278
                 List<TaPersonBuilding> list = taPersonBuildingService.list(taPersonBuildingLambdaQueryWrapper);
279 279
                 if (list.size() > 0) {
280 280
                     TaUser taUser = taUserService.getById(list.get(0).getUserId());

+ 18
- 3
src/main/java/com/yunzhi/marketing/xlk/service/impl/ChannelCustomerServiceImpl.java Ver arquivo

@@ -367,7 +367,12 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
367 367
         }
368 368
         customerPreparatory.setOrgId(taRecommendCustomer.getOrgId());
369 369
         customerPreparatory.setCustomerId(taRecommendCustomer.getCustomerId());
370
-        customerPreparatoryMapper.insert(customerPreparatory);
370
+        if (StringUtils.isEmpty(customerPreparatory.getCustomerPreparatoryId())) {
371
+            customerPreparatoryMapper.insert(customerPreparatory);
372
+        }else {
373
+            customerPreparatoryMapper.updateById(customerPreparatory);
374
+        }
375
+
371 376
         return ResponseBean.success("审核成功");
372 377
     }
373 378
 
@@ -406,7 +411,12 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
406 411
         customerSignatory.setOrgId(taRecommendCustomer.getOrgId());
407 412
         customerSignatory.setCreateDate(LocalDateTime.now());
408 413
         customerSignatory.setType("commission");
409
-        customerSignatoryMapper.insert(customerSignatory);
414
+        if (StringUtils.isEmpty(customerSignatory.getCustomerSignatoryId())){
415
+            customerSignatoryMapper.insert(customerSignatory);
416
+        }else {
417
+            customerSignatoryMapper.updateById(customerSignatory);
418
+        }
419
+
410 420
         return ResponseBean.success("审核成功");
411 421
     }
412 422
 
@@ -447,7 +457,12 @@ public class ChannelCustomerServiceImpl extends ServiceImpl<ChannelCustomerMappe
447 457
         }
448 458
         customerSignatory.setOrgId(taRecommendCustomer.getOrgId());
449 459
         customerSignatory.setType("signatory");
450
-        customerSignatoryMapper.insert(customerSignatory);
460
+        if (StringUtils.isEmpty(customerSignatory.getCustomerSignatoryId())) {
461
+            customerSignatoryMapper.insert(customerSignatory);
462
+        }else {
463
+            customerSignatoryMapper.updateById(customerSignatory);
464
+        }
465
+
451 466
         return ResponseBean.success("审核成功");
452 467
     }
453 468
 

+ 1
- 0
src/main/resources/mapper/TaUserMapper.xml Ver arquivo

@@ -161,6 +161,7 @@
161 161
     <select id="selectPageList" resultType="com.yunzhi.marketing.center.taUser.entity.TaUserVO">
162 162
         SELECT
163 163
             s.person_id as user_id,
164
+            t.user_id as real_user_id,
164 165
             t.*
165 166
         FROM
166 167
             ta_user t