|
|
@@ -17,8 +17,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;
|
|
|
@@ -26,13 +26,13 @@ public class ReleaseUserTask {
|
|
|
private UserService userServiceImpl;
|
|
|
|
|
|
int pointsDataLimit=100;
|
|
|
- Date releaseTime = new Date();
|
|
|
+
|
|
|
/**
|
|
|
* 每天凌晨一点将客户和业务转为待释放
|
|
|
*/
|
|
|
|
|
|
- @Scheduled(cron = "0 10 15 * * ?")
|
|
|
-// @RequestMapping(value = "/open/updateUser", method = RequestMethod.GET)
|
|
|
+// @Scheduled(cron = "0 10 15 * * ?")
|
|
|
+ @RequestMapping(value = "/open/updateUser", method = RequestMethod.GET)
|
|
|
public void updateUser(){
|
|
|
try {
|
|
|
List<User> userList = userServiceImpl.selectUserByRoleName("营销员","营销经理");
|
|
|
@@ -83,9 +83,10 @@ public class ReleaseUserTask {
|
|
|
* 将待释放的代码释放出去
|
|
|
*/
|
|
|
|
|
|
- @Scheduled(cron = "0 20 15 * * ?")
|
|
|
-// @RequestMapping(value = "/open/releaseUser", method = RequestMethod.GET)
|
|
|
+// @Scheduled(cron = "0 20 15 * * ?")
|
|
|
+ @RequestMapping(value = "/open/releaseUser", method = RequestMethod.GET)
|
|
|
public void releaseUser(){
|
|
|
+ Date releaseTime = new Date();
|
|
|
try {
|
|
|
List<LockingReleaseBo> lockList=customerServiceImpl.selectPendinglockUserList();
|
|
|
List<LockingReleaseBo> newList=new ArrayList<>();
|