傅行帆 5 年前
父节点
当前提交
781c2d03b1
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      src/main/java/com/huiju/estateagents/controller/TaBuildingDynamicController.java

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

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