|
@@ -2,6 +2,7 @@ package com.huiju.estateagents.job;
|
2
|
2
|
|
3
|
3
|
import com.huiju.estateagents.base.BaseController;
|
4
|
4
|
import com.huiju.estateagents.center.sysUser.controller.SysUserController;
|
|
5
|
+import com.huiju.estateagents.common.DateUtils;
|
5
|
6
|
import com.huiju.estateagents.service.*;
|
6
|
7
|
import org.slf4j.Logger;
|
7
|
8
|
import org.slf4j.LoggerFactory;
|
|
@@ -11,6 +12,8 @@ import org.springframework.scheduling.annotation.EnableScheduling;
|
11
|
12
|
import org.springframework.scheduling.annotation.Scheduled;
|
12
|
13
|
import org.springframework.stereotype.Component;
|
13
|
14
|
|
|
15
|
+import java.time.LocalDateTime;
|
|
16
|
+
|
14
|
17
|
/**
|
15
|
18
|
* @author admin
|
16
|
19
|
* @Title: JudglActivityTimeJob
|
|
@@ -52,7 +55,9 @@ public class JudglActivityTimeJob extends BaseController {
|
52
|
55
|
private void configureTasks() {
|
53
|
56
|
|
54
|
57
|
//未开始活动更新为已开始
|
55
|
|
- Integer count = iTaBuildingDynamicService.updateUnStartActivity();
|
|
58
|
+ String time = DateUtils.cutSecond(LocalDateTime.now());
|
|
59
|
+ Integer count = iTaBuildingDynamicService.updateUnStartActivity(time);
|
|
60
|
+ System.out.println("count" + count);
|
56
|
61
|
logger.debug("JudglActivityTimeJob",count);
|
57
|
62
|
//进行中活动更新为已结束
|
58
|
63
|
iTaBuildingDynamicService.updateProcessingActivity();
|