|
|
@@ -63,18 +63,18 @@ public class ReleaseUserTask {
|
|
|
* 客户释放
|
|
|
*
|
|
|
*/
|
|
|
-// @Scheduled(cron = "0 48 11 * * ?")
|
|
|
+// @Scheduled(cron = "0 43 15 * * ?")
|
|
|
// @RequestMapping("/open/test")
|
|
|
@Scheduled(cron = "0 0 1 * * ?")
|
|
|
public void startTask() {
|
|
|
try {
|
|
|
List<User> userList = userService.selectUserByRoleName("营销员", "营销经理");
|
|
|
pushUserDays(userList);
|
|
|
- Thread.sleep(2000);
|
|
|
+ Thread.sleep(500);
|
|
|
updateUser(userList);
|
|
|
- Thread.sleep(2000);
|
|
|
+ Thread.sleep(500);
|
|
|
pushRestrictProject(userList);
|
|
|
- Thread.sleep(2000);
|
|
|
+ Thread.sleep(500);
|
|
|
pushReleaseClueUser(userList);
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
@@ -237,6 +237,11 @@ public class ReleaseUserTask {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 客户提醒
|
|
|
+ * @param userList
|
|
|
+ * @throws InterruptedException
|
|
|
+ */
|
|
|
private void pushUserDays(List<User> userList ) throws InterruptedException {
|
|
|
LoggerUtils.debug(getClass(), "==============客户提醒开始============");
|
|
|
List<Notice> ln = new ArrayList<>();
|
|
|
@@ -302,7 +307,6 @@ public class ReleaseUserTask {
|
|
|
customerService.pushReleaseLog(users1);
|
|
|
addUserNotice(users1);
|
|
|
lockSignList.addAll(users1);
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
}
|