|
@@ -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());
|