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

Commit c67d3d4d authored by 姜秀龙's avatar 姜秀龙

damai kylin to platform

parent 34349732
......@@ -54,7 +54,4 @@ public interface FeignPlatformTaskClient {
@GetMapping("platform/refund/failRefund")
ResponseDto<Boolean> failRefund();
@PostMapping("platform/damai/scheduledSync")
ResponseDto<Boolean> scheduledSyncDamai();
}
......@@ -5,6 +5,7 @@ import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Component
......@@ -29,4 +30,7 @@ public interface FeignPlatformApiClient {
@RequestParam("pageSize") Integer pageSize
);
@PostMapping("platform/damai/scheduledSync")
ResponseDto<Boolean> scheduledSyncDamai();
}
......@@ -122,14 +122,4 @@ public class KylinTaskHandler {
}
}
@XxlJob(value = "sev-platform:scheduledSyncDamai")
public void scheduledSyncDamaiHandler() {
try {
XxlJobHelper.handleSuccess("定时大麦同步结果:" + feignPlatformTaskClient.scheduledSyncDamai().getData());
} catch (Exception e) {
XxlJobHelper.log(e);
XxlJobHelper.handleFail();
}
}
}
......@@ -153,4 +153,14 @@ public class PlatformTaskHandler {
XxlJobHelper.handleFail();
}
}
@XxlJob(value = "sev-platform:scheduledSyncDamai")
public void scheduledSyncDamaiHandler() {
try {
XxlJobHelper.handleSuccess("定时大麦同步结果:" + feignPlatformApiClient.scheduledSyncDamai().getData());
} catch (Exception e) {
XxlJobHelper.log(e);
XxlJobHelper.handleFail();
}
}
}
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