dingxin 5 years ago
parent
commit
c580ce5934

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

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