魏超 vor 5 Jahren
Ursprung
Commit
7ccfdbebe0

+ 4
- 0
src/main/java/com/huiju/estateagents/reportCustomerAop/ReportCustomerAspect.java Datei anzeigen

@@ -90,6 +90,10 @@ public class ReportCustomerAspect extends BaseController {
90 90
             TaBuilding taBuilding = (TaBuilding) stringObjectMap.get("taBuilding");
91 91
             TaBuilding building = taBuilding == null ? null : taBuildingMapper.selectById(taBuilding.getBuildingId());
92 92
 
93
+            if (StringUtils.isEmpty(taPerson.getPhone())) {
94
+                responseBean.addError("未授权,不进行操作");
95
+                return responseBean;
96
+            }
93 97
             iTaRecommendCustomerService.newCustomer(orgId, taPerson, recPerson, consultantInfo, building, taCustomerFrom);
94 98
             responseBean.addSuccess("绑定成功");
95 99
 

+ 3
- 1
src/main/java/com/huiju/estateagents/service/impl/TaRecommendCustomerServiceImpl.java Datei anzeigen

@@ -203,6 +203,8 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
203 203
         // 置业与楼盘是否有关联关系
204 204
         boolean builingAssociated = false;
205 205
 
206
+        boolean personTypeFlag = CommConstant.PERSON_REALTY_CONSULTANT.equals(person.getPersonType()) ? true : false;
207
+
206 208
         // 私客
207 209
         if (null != consultant && !hasConsultCust && null != consultBuildings) {
208 210
             TaBuilding taBuilding = null;
@@ -235,7 +237,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
235 237
         }
236 238
 
237 239
         // 项目公客
238
-        if (null != building && !hasBuildingCust && !builingAssociated) {
240
+        if (null != building && !hasBuildingCust && !builingAssociated && !personTypeFlag) {
239 241
             TaRecommendCustomer customer = copyFromPerosn(person, new TaRecommendCustomer());
240 242
             fillSomeFieldsOfCustomer(customer, recommender, now);
241 243
             customer.setBuildingId(building.getBuildingId());