傅行帆 5 years ago
parent
commit
781c2d03b1

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

310
                Integer tempIsCheckin = enlist.getIsCheckin();
310
                Integer tempIsCheckin = enlist.getIsCheckin();
311
                enlist.setIsCheckin(CommConstant.STATUS_NORMAL);
311
                enlist.setIsCheckin(CommConstant.STATUS_NORMAL);
312
                if(taActivityDynamicEnlistMapper.updateById(enlist)>0){
312
                if(taActivityDynamicEnlistMapper.updateById(enlist)>0){
313
-                   if (tempIsCheckin.intValue() == CommConstant.STATUS_UNACCALIMED.intValue()){
313
+                   System.out.println("验证1");
314
+                   if (tempIsCheckin.equals(CommConstant.STATUS_UNACCALIMED)){
315
+                       System.out.println("验证2");
314
                        enlist.setEnlistId(Integer.valueOf(enlistId));
316
                        enlist.setEnlistId(Integer.valueOf(enlistId));
315
                        applicationContext.publishEvent(new EventBus(enlist,ActivityCheckin,getOrgId(request)));
317
                        applicationContext.publishEvent(new EventBus(enlist,ActivityCheckin,getOrgId(request)));
316
                        QueryWrapper<TaRecommendCustomer> customerQueryWrapper = new QueryWrapper<>();
318
                        QueryWrapper<TaRecommendCustomer> customerQueryWrapper = new QueryWrapper<>();
317
                        customerQueryWrapper.eq("person_id",enlist.getPersonId());
319
                        customerQueryWrapper.eq("person_id",enlist.getPersonId());
318
                        customerQueryWrapper.eq("building_id",enlist.getBuildingId());
320
                        customerQueryWrapper.eq("building_id",enlist.getBuildingId());
319
                        TaRecommendCustomer recommendCustomer = recommendCustomerService.getOne(customerQueryWrapper);
321
                        TaRecommendCustomer recommendCustomer = recommendCustomerService.getOne(customerQueryWrapper);
320
-                       if (recommendCustomer.getStatus() < CommConstant.CUSTOMER_VISITE){
322
+                       if (recommendCustomer.getStatus().equals(CommConstant.CUSTOMER_REPORT)){
323
+                           System.out.println("验证3");
321
                            recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
324
                            recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
322
                            recommendCustomer.setArrivalDate(LocalDateTime.now());
325
                            recommendCustomer.setArrivalDate(LocalDateTime.now());
323
                            recommendCustomerService.updateById(recommendCustomer);
326
                            recommendCustomerService.updateById(recommendCustomer);