|
|
@@ -62,7 +62,7 @@ public class ReleaseUserTask {
|
|
|
* 客户释放
|
|
|
*
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 15 16 * * ?")
|
|
|
+ @Scheduled(cron = "0 22 16 * * ?")
|
|
|
// @RequestMapping("/open/test")
|
|
|
// @Scheduled(cron = "0 0 1 * * ?")
|
|
|
public void startTask() {
|
|
|
@@ -83,7 +83,7 @@ public class ReleaseUserTask {
|
|
|
|
|
|
private void pushReleaseClueUser(List<User> userList) {
|
|
|
LoggerUtils.debug(getClass(), "==============线索客户丢失开始============");
|
|
|
- LocalDateTime now = LocalDateTime.now();
|
|
|
+ LocalDateTime now = LocalDateTime.now().withHour(0).withMinute(0).withSecond(0);
|
|
|
Date date = new Date();
|
|
|
List<Notice> ln = new ArrayList<>();
|
|
|
List<User> releaseUserList = new ArrayList<>();
|
|
|
@@ -93,6 +93,7 @@ public class ReleaseUserTask {
|
|
|
for (User u : users) {
|
|
|
String aid=null;
|
|
|
LocalDateTime clueTime=u.getClueTransferTime().toInstant().atZone(java.time.ZoneId.systemDefault()).toLocalDateTime();
|
|
|
+ clueTime = clueTime.withHour(0).withMinute(0).withSecond(0);
|
|
|
//已分配的通知人与时间不同,
|
|
|
if (u.getClueProcess()==1){
|
|
|
aid=u.getAid();
|