|
@@ -99,6 +99,9 @@ public class TaBuildingDynamicController extends BaseController {
|
99
|
99
|
@Autowired
|
100
|
100
|
private ITaPointsRecordsService taPointsRecordsService;
|
101
|
101
|
|
|
102
|
+ @Autowired
|
|
103
|
+ private IExtendContentService iExtendContentService;
|
|
104
|
+
|
102
|
105
|
@InitBinder
|
103
|
106
|
protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception {
|
104
|
107
|
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
|
@@ -310,14 +313,17 @@ public class TaBuildingDynamicController extends BaseController {
|
310
|
313
|
Integer tempIsCheckin = enlist.getIsCheckin();
|
311
|
314
|
enlist.setIsCheckin(CommConstant.STATUS_NORMAL);
|
312
|
315
|
if(taActivityDynamicEnlistMapper.updateById(enlist)>0){
|
313
|
|
- if (tempIsCheckin.intValue() == CommConstant.STATUS_UNACCALIMED.intValue()){
|
|
316
|
+ System.out.println("验证1");
|
|
317
|
+ if (tempIsCheckin.equals(CommConstant.STATUS_UNACCALIMED)){
|
|
318
|
+ System.out.println("验证2");
|
314
|
319
|
enlist.setEnlistId(Integer.valueOf(enlistId));
|
315
|
320
|
applicationContext.publishEvent(new EventBus(enlist,ActivityCheckin,getOrgId(request)));
|
316
|
321
|
QueryWrapper<TaRecommendCustomer> customerQueryWrapper = new QueryWrapper<>();
|
317
|
322
|
customerQueryWrapper.eq("person_id",enlist.getPersonId());
|
318
|
323
|
customerQueryWrapper.eq("building_id",enlist.getBuildingId());
|
319
|
324
|
TaRecommendCustomer recommendCustomer = recommendCustomerService.getOne(customerQueryWrapper);
|
320
|
|
- if (recommendCustomer.getStatus() < CommConstant.CUSTOMER_VISITE){
|
|
325
|
+ if (null != recommendCustomer&&recommendCustomer.getStatus().equals(CommConstant.CUSTOMER_REPORT)){
|
|
326
|
+ System.out.println("验证3");
|
321
|
327
|
recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
|
322
|
328
|
recommendCustomer.setArrivalDate(LocalDateTime.now());
|
323
|
329
|
recommendCustomerService.updateById(recommendCustomer);
|
|
@@ -530,7 +536,8 @@ public class TaBuildingDynamicController extends BaseController {
|
530
|
536
|
dynamicQueryWrapper.eq("dynamic_id", dynamicId);
|
531
|
537
|
TaBuildingDynamic dynamic = iBuildingDynamicService.getOne(dynamicQueryWrapper);
|
532
|
538
|
dynamic.setStatus(0);
|
533
|
|
- dynamic.setOrgId(getOrgId(request));
|
|
539
|
+ // 设置为取消发布以后把轮播图和资讯设置为停用
|
|
540
|
+ iExtendContentService.updateActivity(dynamicId,"activity",getOrgId(request));
|
534
|
541
|
iBuildingDynamicService.update(dynamic, dynamicQueryWrapper);
|
535
|
542
|
return responseBean;
|
536
|
543
|
}
|