Browse Source

将客户释放设置自动释放12-13点

anderx 7 years ago
parent
commit
eb1954464d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/main/java/com/goafanti/common/task/ReleaseUserTask.java

+ 6 - 6
src/main/java/com/goafanti/common/task/ReleaseUserTask.java

@@ -14,8 +14,8 @@ import com.goafanti.common.utils.LoggerUtils;
 import com.goafanti.customer.bo.LockingReleaseBo;
 import com.goafanti.customer.service.CustomerService;
 import com.goafanti.user.service.UserService;
-//@Component
-@Controller
+@Component
+//@Controller
 public class ReleaseUserTask {
 	@Resource
 	private CustomerService customerServiceImpl;
@@ -28,8 +28,8 @@ public class ReleaseUserTask {
 	 * 每天凌晨一点将客户和业务转为待释放
 	 */
 	
-//	@Scheduled(cron = "0 5 9  * * ?") 
-	@RequestMapping(value = "/open/updateUser", method = RequestMethod.GET)
+	@Scheduled(cron = "0 0 12  * * ?") 
+//	@RequestMapping(value = "/open/updateUser", method = RequestMethod.GET)
 	public void updateUser(){
 		try {
 			List<User> userList = userServiceImpl.selectUserByRoleName("营销员","营销经理");
@@ -80,8 +80,8 @@ public class ReleaseUserTask {
 	 * 将待释放客户与业务释放
 	 */
 	
-//	@Scheduled(cron = "0 10 9  * * ?") 
-	@RequestMapping(value = "/open/releaseUser", method = RequestMethod.GET)
+	@Scheduled(cron = "0 0 13  * * ?") 
+//	@RequestMapping(value = "/open/releaseUser", method = RequestMethod.GET)
 	public void releaseUser(){
 		Date releaseTime = new Date();
 		try {