胡轶钦 5 years ago
parent
commit
907e2b3f1a

+ 1
- 1
src/main/java/com/huiju/estateagents/controller/TaBuildingDynamicController.java View File

322
                        customerQueryWrapper.eq("person_id",enlist.getPersonId());
322
                        customerQueryWrapper.eq("person_id",enlist.getPersonId());
323
                        customerQueryWrapper.eq("building_id",enlist.getBuildingId());
323
                        customerQueryWrapper.eq("building_id",enlist.getBuildingId());
324
                        TaRecommendCustomer recommendCustomer = recommendCustomerService.getOne(customerQueryWrapper);
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
                            System.out.println("验证3");
326
                            System.out.println("验证3");
327
                            recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
327
                            recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
328
                            recommendCustomer.setArrivalDate(LocalDateTime.now());
328
                            recommendCustomer.setArrivalDate(LocalDateTime.now());