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

Commit 425ab8d5 authored by GaoHu's avatar GaoHu

演出预告列表任务配置

parent 1aee7016
...@@ -52,4 +52,8 @@ public interface FeignKylinForChimeClient { ...@@ -52,4 +52,8 @@ public interface FeignKylinForChimeClient {
ResponseDto<KylinPerformanceVo> getDetail( ResponseDto<KylinPerformanceVo> getDetail(
@RequestParam("performancesId") String performancesId @RequestParam("performancesId") String performancesId
); );
@GetMapping("inner/setNoticeIds")
ResponseDto<HashMap<String,Object>> setNoticeIds();
} }
package com.liquidnet.service.executor.main.handler; 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.liquidnet.service.feign.kylin.task.FeignPlatformTaskClient;
import com.xxl.job.core.context.XxlJobHelper; import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob; import com.xxl.job.core.handler.annotation.XxlJob;
...@@ -19,6 +20,9 @@ public class KylinTaskHandler { ...@@ -19,6 +20,9 @@ public class KylinTaskHandler {
@Autowired @Autowired
private FeignPlatformTaskClient feignPlatformTaskClient; private FeignPlatformTaskClient feignPlatformTaskClient;
@Autowired
private FeignKylinForChimeClient feignKylinForChimeClient;
@XxlJob(value = "sev-platform:checkOrderTimeHandler") @XxlJob(value = "sev-platform:checkOrderTimeHandler")
public void checkOrderTimeHandler() { public void checkOrderTimeHandler() {
try { try {
...@@ -68,4 +72,14 @@ public class KylinTaskHandler { ...@@ -68,4 +72,14 @@ public class KylinTaskHandler {
XxlJobHelper.handleFail(); 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 { ...@@ -68,11 +68,11 @@ public class InnerController {
} }
} }
@GetMapping("setRedisIds") @GetMapping("/setNoticeIds")
@ApiOperation("演出预告列表定时任务") @ApiOperation("演出预告列表定时任务")
public void setRedisIds(){ public ResponseDto<HashMap<String,Object>> setNoticeIds(){
HashMap<String,Object> map = kylinPerformancesService.setRedisIds(); HashMap<String, Object> map = kylinPerformancesService.setNoticeIds();
log.debug("演出预告列表"+map); return ResponseDto.success(map);
} }
} }
...@@ -175,8 +175,8 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService { ...@@ -175,8 +175,8 @@ public class KylinPerformancesServiceImpl implements IKylinPerformancesService {
return newList; return newList;
} }
public HashMap<String,Object> setRedisIds() { public HashMap<String,Object> setNoticeIds() {
return dataUtils.setRedisIds(); return dataUtils.setNoticeIds();
} }
private List<KylinPerformanceVo> mergeRoadList(List<KylinPerformanceVo> performanceList) { private List<KylinPerformanceVo> mergeRoadList(List<KylinPerformanceVo> performanceList) {
......
...@@ -462,7 +462,7 @@ public class DataUtils { ...@@ -462,7 +462,7 @@ public class DataUtils {
} }
//执行脚本 //执行脚本
public HashMap<String, Object> setRedisIds() { public HashMap<String, Object> setNoticeIds() {
// 固定条件 // 固定条件
Query query = getCommonWhere(); 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