|
|
|
@ -31,7 +31,7 @@ public class CustomerImpressionTask {
|
|
|
|
|
private ThreadPoolExecutor generatePool = new ThreadPoolExecutor(10, 30, 5, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
|
|
|
|
|
|
|
|
|
|
@Scheduled(cron = "0 30 3 * * ?")
|
|
|
|
|
public void generateTags() {
|
|
|
|
|
public void customerImpressionGenerateTags() {
|
|
|
|
|
List<JSONObject> clients = clientMapper.listValidClient();
|
|
|
|
|
List<List<JSONObject>> splitList = new ArrayList<>();
|
|
|
|
|
for (int i = 0; i < clients.size(); i+=200) {
|
|
|
|
@ -52,7 +52,7 @@ public class CustomerImpressionTask {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Scheduled(cron = "0/1 * * * * ?")
|
|
|
|
|
public void generateInfo() {
|
|
|
|
|
public void customerImpressionGenerateInfo() {
|
|
|
|
|
customerImpressionService.generateInfo();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|