胡轶钦 5 年之前
父節點
當前提交
907e2b3f1a
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      src/main/java/com/huiju/estateagents/controller/TaBuildingDynamicController.java

+ 1
- 1
src/main/java/com/huiju/estateagents/controller/TaBuildingDynamicController.java 查看文件

@@ -322,7 +322,7 @@ public class TaBuildingDynamicController extends BaseController {
322 322
                        customerQueryWrapper.eq("person_id",enlist.getPersonId());
323 323
                        customerQueryWrapper.eq("building_id",enlist.getBuildingId());
324 324
                        TaRecommendCustomer recommendCustomer = recommendCustomerService.getOne(customerQueryWrapper);
325
-                       if (recommendCustomer.getStatus().equals(CommConstant.CUSTOMER_REPORT)){
325
+                       if (null != recommendCustomer&&recommendCustomer.getStatus().equals(CommConstant.CUSTOMER_REPORT)){
326 326
                            System.out.println("验证3");
327 327
                            recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
328 328
                            recommendCustomer.setArrivalDate(LocalDateTime.now());