|
@@ -220,7 +220,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
220
|
220
|
QueryWrapper<TaRecommendCustomer> queryWrapper = new QueryWrapper<>();
|
221
|
221
|
queryWrapper.eq("phone", taRecommendCustomer.getPhone());
|
222
|
222
|
queryWrapper.eq("building_id",taRecommendCustomer.getBuildingId());
|
223
|
|
- queryWrapper.eq("verify_status",CommConstant.VERIFY_AGREE);
|
|
223
|
+ queryWrapper.in("verify_status",CommConstant.VERIFY_AGREE,CommConstant.VERIFY_READY);
|
224
|
224
|
List<TaRecommendCustomer> result = taRecommendCustomerMapper.selectList(queryWrapper);
|
225
|
225
|
if (null != result && result.size() > 0) {
|
226
|
226
|
return ResponseBean.error("当前客户已被推荐, 不能再次推荐", ResponseBean.ERROR_ILLEGAL_PARAMS);
|
|
@@ -302,7 +302,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
|
302
|
302
|
queryWrapper.eq("name", taRecommendCustomer.getName());
|
303
|
303
|
queryWrapper.eq("phone", taRecommendCustomer.getPhone());
|
304
|
304
|
queryWrapper.eq("building_id",taRecommendCustomer.getBuildingId());
|
305
|
|
- queryWrapper.eq("verify_status",CommConstant.VERIFY_AGREE);
|
|
305
|
+ queryWrapper.in("verify_status",CommConstant.VERIFY_AGREE,CommConstant.VERIFY_READY);
|
306
|
306
|
List<TaRecommendCustomer> result = taRecommendCustomerMapper.selectList(queryWrapper);
|
307
|
307
|
if (null != result && result.size() > 0) {
|
308
|
308
|
return ResponseBean.error("当前客户已被报备, 不能再次报备", ResponseBean.ERROR_ILLEGAL_PARAMS);
|