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

Commit 4c3d1d4c authored by 姜秀龙's avatar 姜秀龙

Merge branch 'refs/heads/jxl-260205-damai' into container-test

parents 6b4261b4 c67d3d4d
...@@ -54,7 +54,4 @@ public interface FeignPlatformTaskClient { ...@@ -54,7 +54,4 @@ public interface FeignPlatformTaskClient {
@GetMapping("platform/refund/failRefund") @GetMapping("platform/refund/failRefund")
ResponseDto<Boolean> failRefund(); ResponseDto<Boolean> failRefund();
@PostMapping("platform/damai/scheduledSync")
ResponseDto<Boolean> scheduledSyncDamai();
} }
...@@ -5,6 +5,7 @@ import feign.hystrix.FallbackFactory; ...@@ -5,6 +5,7 @@ import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
@Component @Component
...@@ -29,4 +30,7 @@ public interface FeignPlatformApiClient { ...@@ -29,4 +30,7 @@ public interface FeignPlatformApiClient {
@RequestParam("pageSize") Integer pageSize @RequestParam("pageSize") Integer pageSize
); );
@PostMapping("platform/damai/scheduledSync")
ResponseDto<Boolean> scheduledSyncDamai();
} }
...@@ -122,14 +122,4 @@ public class KylinTaskHandler { ...@@ -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 { ...@@ -153,4 +153,14 @@ public class PlatformTaskHandler {
XxlJobHelper.handleFail(); 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