|
@@ -321,7 +321,23 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
321
|
321
|
queryWrapper.in("verify_status",CommConstant.VERIFY_AGREE,CommConstant.VERIFY_READY);
|
322
|
322
|
List<TaRecommendCustomer> result = taRecommendCustomerMapper.selectList(queryWrapper);
|
323
|
323
|
if (null != result && result.size() > 0) {
|
324
|
|
- return ResponseBean.error("当前客户已被报备, 不能再次报备", ResponseBean.ERROR_ILLEGAL_PARAMS);
|
|
324
|
+ String conName = "";
|
|
325
|
+ TaPerson conPerson = taPersonMapper.selectById(result.get(0).getRealtyConsultant());
|
|
326
|
+ if (null != conPerson){
|
|
327
|
+ if(params.getString("realtyConsultant").equals(conPerson.getPersonId())){
|
|
328
|
+ ResponseBean.success(result.get(0));
|
|
329
|
+ }
|
|
330
|
+ conName = conPerson.getName();
|
|
331
|
+ }else {
|
|
332
|
+ TaUser conUser = userService.getById(result.get(0).getRealtyConsultant());
|
|
333
|
+ if(null != conUser){
|
|
334
|
+ conName = conUser.getUserName();
|
|
335
|
+ if(params.getString("realtyConsultant").equals(conUser.getUserId().toString())){
|
|
336
|
+ ResponseBean.success(result.get(0));
|
|
337
|
+ }
|
|
338
|
+ }
|
|
339
|
+ }
|
|
340
|
+ return ResponseBean.error("您在当前项目的置业顾问是:"+conName, ResponseBean.ERROR_ILLEGAL_PARAMS);
|
325
|
341
|
}
|
326
|
342
|
|
327
|
343
|
int row = taRecommendCustomerMapper.insert(taRecommendCustomer);
|