|
|
@@ -1,18 +1,5 @@
|
|
|
package com.goafanti.common.task;
|
|
|
|
|
|
-import java.util.*;
|
|
|
-
|
|
|
-import javax.annotation.Resource;
|
|
|
-
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.beans.factory.annotation.Value;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
-import org.springframework.stereotype.Controller;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
-
|
|
|
import com.goafanti.common.bo.EmailBo;
|
|
|
import com.goafanti.common.bo.userDaysBo;
|
|
|
import com.goafanti.common.constant.AFTConstants;
|
|
|
@@ -27,7 +14,16 @@ 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;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
+import org.springframework.scheduling.annotation.Scheduled;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.Date;
|
|
|
+import java.util.List;
|
|
|
+import java.util.UUID;
|
|
|
|
|
|
|
|
|
@Component
|
|
|
@@ -128,6 +124,7 @@ public class ReleaseUserTask {
|
|
|
}
|
|
|
}
|
|
|
List<LockingReleaseBo> newList = new ArrayList<LockingReleaseBo>();
|
|
|
+ List<String> aidList=new ArrayList<>();
|
|
|
if (lockUserList != null && lockUserList.size() > 0) {
|
|
|
for (int i = 0; i < lockUserList.size(); i++) {
|
|
|
newList.add(lockUserList.get(i));
|
|
|
@@ -138,8 +135,16 @@ public class ReleaseUserTask {
|
|
|
newList.clear();
|
|
|
Thread.sleep(2000);
|
|
|
}
|
|
|
+ //设置释放客户修改客户数
|
|
|
+ String aid=lockUserList.get(i).getAid();
|
|
|
+ if (!aidList.contains(aid)){
|
|
|
+ aidList.add(aid);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
+ for (String aid : aidList) {
|
|
|
+ customerService.updateAdminUserCountByAid(aid);
|
|
|
+ }
|
|
|
pushChannel(releaseTime, userList);
|
|
|
} catch (Exception e) {
|
|
|
Notice n = new Notice(UUID.randomUUID().toString(), new Date(), 0, "1",
|