weichaochao 5 years ago
parent
commit
06a6c64451

+ 2
- 4
src/main/java/com/huiju/estateagents/service/impl/TaRecommendCustomerServiceImpl.java View File

@@ -754,9 +754,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
754 754
     public ResponseBean consultantAssist(TaUser taUser, String personId, Integer orgId) {
755 755
         TaPerson taPerson = taPersonMapper.getById(personId);
756 756
 
757
-        QueryWrapper<TaPerson> taPersonQueryWrapper = new QueryWrapper();
758
-        taPersonQueryWrapper.eq("user_id", taUser.getUserId());
759
-        TaPerson recommendPerson = taPersonMapper.selectOne(taPersonQueryWrapper);
757
+        TaPerson recommendPerson = taPersonMapper.selectById(personId);
760 758
 
761 759
         QueryWrapper<TaUser> queryWrapper = new QueryWrapper();
762 760
         queryWrapper.eq("user_id", taUser.getUserId());
@@ -788,7 +786,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
788 786
         taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_AGREE);
789 787
         taRecommendCustomer.setStatus(CommConstant.CUSTOMER_REPORT);
790 788
         taRecommendCustomer.setPersonId(personId);
791
-        taRecommendCustomer.setRecommendPerson(recommendPerson == null ? taUser.getUserId().toString() : recommendPerson.getPersonId());
789
+        taRecommendCustomer.setRecommendPerson(recommendPerson == null ? "" : recommendPerson.getRecommendPerson());
792 790
 
793 791
         int row = taRecommendCustomerMapper.insert(taRecommendCustomer);
794 792
         if (row < 1) {