Quellcode durchsuchen

渠道修改新增修改渠道别类

anderx vor 3 Jahren
Ursprung
Commit
4e5f255d31
1 geänderte Dateien mit 7 neuen und 5 gelöschten Zeilen
  1. 7 5
      src/main/java/com/goafanti/common/task/ReleaseUserTask.java

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

@@ -27,10 +27,11 @@ import com.goafanti.common.utils.StringUtils;
 import com.goafanti.customer.bo.LockingReleaseBo;
 import com.goafanti.customer.service.CustomerService;
 import com.goafanti.user.service.UserService;
-
+import org.springframework.web.bind.annotation.RestController;
 
 
 @Component
+//@RestController
 public class ReleaseUserTask {
 	@Resource
 	private CustomerService customerService;
@@ -51,8 +52,8 @@ public class ReleaseUserTask {
 	 *
 	 * @throws InterruptedException
 	 */
-	@Scheduled(cron = "0 52 14  * * ?")
-//	@Scheduled(cron = "0 0 1  * * ?")
+//	@Scheduled(cron = "0 37 15  * * ?")
+	@Scheduled(cron = "0 0 1  * * ?")
 	public void startTask() {
 		try {
 			pushUserDays();
@@ -65,8 +66,8 @@ public class ReleaseUserTask {
 
 	}
 
-	@ResponseBody
-	@RequestMapping(value = "/open/remindUser", method = RequestMethod.GET)
+//	@ResponseBody
+//	@RequestMapping(value = "/open/remindUser", method = RequestMethod.GET)
 	private void pushUserDays() throws InterruptedException {
 		LoggerUtils.debug(getClass(), "==============客户提醒开始============");
 		List<User> userList = userService.selectUserByRoleName("营销员", "营销经理");
@@ -77,6 +78,7 @@ public class ReleaseUserTask {
 				userTmpList = customerService.selectReleaseUserDays(u.getId());
 				for (userDaysBo ub : userTmpList) {
 					String str=null;
+					System.out.println(ub.getName());
 					if (ub.getChannel() == 0) {
 						String shareType="";
 						if(ub.getNewChannel()==0)shareType="私有";