记得上下班打卡 | git大法好,push需谨慎

Commit 425ab8d5 authored by GaoHu's avatar GaoHu

演出预告列表任务配置

parent 1aee7016
......@@ -52,4 +52,8 @@ public interface FeignKylinForChimeClient {
ResponseDto<KylinPerformanceVo> getDetail(
@RequestParam("performancesId") String performancesId
);
@GetMapping("inner/setNoticeIds")
ResponseDto<HashMap<String,Object>> setNoticeIds();
}
package com.liquidnet.service.executor.main.handler;
import com.liquidnet.service.feign.kylin.api.FeignKylinForChimeClient;
import com.liquidnet.service.feign.kylin.task.FeignPlatformTaskClient;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
......@@ -19,6 +20,9 @@ public class KylinTaskHandler {
@Autowired
private FeignPlatformTaskClient feignPlatformTaskClient;
@Autowired
private FeignKylinForChimeClient feignKylinForChimeClient;
@XxlJob(value = "sev-platform:checkOrderTimeHandler")
public void checkOrderTimeHandler() {
try {
......@@ -68,4 +72,14 @@ public class KylinTaskHandler {
XxlJobHelper.handleFail();
}
}
@XxlJob(value = "sev-platform:setNoticeIds")
public void setNoticeIds() {
try {
XxlJobHelper.handleSuccess("结果:" + feignKylinForChimeClient.setNoticeIds().getData());
} catch (Exception e) {
XxlJobHelper.log(e);
XxlJobHelper.handleFail();
}
}
}
......@@ -68,11 +68,11 @@ public class InnerController {
}
}
@GetMapping("setRedisIds")
@GetMapping("/setNoticeIds")
@ApiOperation("演出预告列表定时任务")
public void setRedisIds(){
HashMap<String,Object> map = kylinPerformancesService.setRedisIds();
log.debug("演出预告列表"+map);
public ResponseDto<HashMap<String,Object>> setNoticeIds(){
HashMap<String, Object> map = kylinPerformancesService.setNoticeIds();
return ResponseDto.success(map);
}
}
......@@ -175,8 +175,8 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
return newList;
}
public HashMap<String,Object> setRedisIds() {
return dataUtils.setRedisIds();
public HashMap<String,Object> setNoticeIds() {
return dataUtils.setNoticeIds();
}
private List<KylinPerformanceVo> mergeRoadList(List<KylinPerformanceVo> performanceList) {
......
......@@ -462,7 +462,7 @@ public class DataUtils {
}
//执行脚本
public HashMap<String, Object> setRedisIds() {
public HashMap<String, Object> setNoticeIds() {
// 固定条件
Query query = getCommonWhere();
// 排序
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment