|
|
@@ -18,8 +18,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;
|
|
|
@@ -32,8 +32,8 @@ public class ReleaseUserTask {
|
|
|
* 每天凌晨一点将客户和业务转为待释放
|
|
|
*/
|
|
|
|
|
|
- @Scheduled(cron = "0 5 9 * * ?")
|
|
|
-// @RequestMapping(value = "/open/updateUser", method = RequestMethod.GET)
|
|
|
+// @Scheduled(cron = "0 5 9 * * ?")
|
|
|
+ @RequestMapping(value = "/open/updateUser", method = RequestMethod.GET)
|
|
|
public void updateUser(){
|
|
|
try {
|
|
|
List<User> userList = userServiceImpl.selectUserByRoleName("营销员","营销经理");
|
|
|
@@ -84,8 +84,8 @@ public class ReleaseUserTask {
|
|
|
* 将待释放客户与业务释放
|
|
|
*/
|
|
|
|
|
|
- @Scheduled(cron = "0 10 9 * * ?")
|
|
|
-// @RequestMapping(value = "/open/releaseUser", method = RequestMethod.GET)
|
|
|
+// @Scheduled(cron = "0 10 9 * * ?")
|
|
|
+ @RequestMapping(value = "/open/releaseUser", method = RequestMethod.GET)
|
|
|
public void releaseUser(){
|
|
|
Date releaseTime = new Date();
|
|
|
try {
|
|
|
@@ -100,6 +100,7 @@ public class ReleaseUserTask {
|
|
|
newList.clear();
|
|
|
Thread.sleep(2000);
|
|
|
}
|
|
|
+ System.out.println(lockList.get(i).getType().equals("0"));
|
|
|
if (lockList.get(i).getType().equals("0")) {
|
|
|
userList.add(lockList.get(i));
|
|
|
if(pointsDataLimit == userList.size()||i == lockList.size()-1){
|