dingxin 5 years ago
parent
commit
c580ce5934

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

@@ -313,14 +313,17 @@ public class TaBuildingDynamicController extends BaseController {
313 313
                Integer tempIsCheckin = enlist.getIsCheckin();
314 314
                enlist.setIsCheckin(CommConstant.STATUS_NORMAL);
315 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 319
                        enlist.setEnlistId(Integer.valueOf(enlistId));
318 320
                        applicationContext.publishEvent(new EventBus(enlist,ActivityCheckin,getOrgId(request)));
319 321
                        QueryWrapper<TaRecommendCustomer> customerQueryWrapper = new QueryWrapper<>();
320 322
                        customerQueryWrapper.eq("person_id",enlist.getPersonId());
321 323
                        customerQueryWrapper.eq("building_id",enlist.getBuildingId());
322 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 327
                            recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
325 328
                            recommendCustomer.setArrivalDate(LocalDateTime.now());
326 329
                            recommendCustomerService.updateById(recommendCustomer);