weichaochao 5 years ago
parent
commit
06a6c64451

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

754
     public ResponseBean consultantAssist(TaUser taUser, String personId, Integer orgId) {
754
     public ResponseBean consultantAssist(TaUser taUser, String personId, Integer orgId) {
755
         TaPerson taPerson = taPersonMapper.getById(personId);
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
         QueryWrapper<TaUser> queryWrapper = new QueryWrapper();
759
         QueryWrapper<TaUser> queryWrapper = new QueryWrapper();
762
         queryWrapper.eq("user_id", taUser.getUserId());
760
         queryWrapper.eq("user_id", taUser.getUserId());
788
         taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_AGREE);
786
         taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_AGREE);
789
         taRecommendCustomer.setStatus(CommConstant.CUSTOMER_REPORT);
787
         taRecommendCustomer.setStatus(CommConstant.CUSTOMER_REPORT);
790
         taRecommendCustomer.setPersonId(personId);
788
         taRecommendCustomer.setPersonId(personId);
791
-        taRecommendCustomer.setRecommendPerson(recommendPerson == null ? taUser.getUserId().toString() : recommendPerson.getPersonId());
789
+        taRecommendCustomer.setRecommendPerson(recommendPerson == null ? "" : recommendPerson.getRecommendPerson());
792
 
790
 
793
         int row = taRecommendCustomerMapper.insert(taRecommendCustomer);
791
         int row = taRecommendCustomerMapper.insert(taRecommendCustomer);
794
         if (row < 1) {
792
         if (row < 1) {