浏览代码

bug 修复

傅行帆 3 年前
父节点
当前提交
296f8e6f12

+ 1
- 1
src/main/java/com/yunzhi/marketing/service/impl/TaRecommendCustomerServiceImpl.java 查看文件

520
             TaPerson recommendPerson = taPersonMapper.selectById(e.getRecommendPerson());
520
             TaPerson recommendPerson = taPersonMapper.selectById(e.getRecommendPerson());
521
             if (null != recommendPerson) {
521
             if (null != recommendPerson) {
522
                 e.setRecommendPersonName(recommendPerson.getName());
522
                 e.setRecommendPersonName(recommendPerson.getName());
523
-                e.setRecommendPersonPhone(recommendPerson.getPhone());
523
+                e.setRecommendPersonPhone(StringUtils.isEmpty(recommendPerson.getTel()) ? recommendPerson.getPhone() : recommendPerson.getTel());
524
             }
524
             }
525
         });
525
         });
526
         return ResponseBean.success(result);
526
         return ResponseBean.success(result);

+ 2
- 1
src/main/java/com/yunzhi/marketing/xlk/service/impl/ChannelCustomerServiceImpl.java 查看文件

341
      */
341
      */
342
     @Override
342
     @Override
343
     public ResponseBean preparatoryCustomer(MarkingPreparatoryCustomerDTO params) {
343
     public ResponseBean preparatoryCustomer(MarkingPreparatoryCustomerDTO params) {
344
+        CustomerPreparatory customerPreparatory = params.getCustomerPreparatory();
344
         TaRecommendCustomer taRecommendCustomer = taRecommendCustomerMapper.selectById(params.getCustomerId());
345
         TaRecommendCustomer taRecommendCustomer = taRecommendCustomerMapper.selectById(params.getCustomerId());
345
         taRecommendCustomer.setStatus(CommConstant.CUSTOMER_PREPARATORY);
346
         taRecommendCustomer.setStatus(CommConstant.CUSTOMER_PREPARATORY);
347
+        taRecommendCustomer.setRealtyConsultant(customerPreparatory.getRealtyConsultant());
346
         taRecommendCustomerMapper.updateById(taRecommendCustomer);
348
         taRecommendCustomerMapper.updateById(taRecommendCustomer);
347
 
349
 
348
         LambdaQueryWrapper<ChannelCustomer> channelCustomerLambdaQueryWrapper = new LambdaQueryWrapper<>();
350
         LambdaQueryWrapper<ChannelCustomer> channelCustomerLambdaQueryWrapper = new LambdaQueryWrapper<>();
353
             channelCustomerMapper.updateById(customer);
355
             channelCustomerMapper.updateById(customer);
354
         }
356
         }
355
 
357
 
356
-        CustomerPreparatory customerPreparatory = params.getCustomerPreparatory();
357
         customerPreparatory.setCreateDate(LocalDateTime.now());
358
         customerPreparatory.setCreateDate(LocalDateTime.now());
358
         customerPreparatory.setBuildingId(taRecommendCustomer.getBuildingId());
359
         customerPreparatory.setBuildingId(taRecommendCustomer.getBuildingId());
359
         customerPreparatory.setRecommendPerson(taRecommendCustomer.getRecommendPerson());
360
         customerPreparatory.setRecommendPerson(taRecommendCustomer.getRecommendPerson());