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

Commit 621d8835 authored by jiangxiulong's avatar jiangxiulong

nft:exe:增加统计待支付订单task

parent d85c8a4f
...@@ -4,6 +4,7 @@ import com.liquidnet.service.base.ResponseDto; ...@@ -4,6 +4,7 @@ import com.liquidnet.service.base.ResponseDto;
import feign.hystrix.FallbackFactory; 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.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping; import org.springframework.web.bind.annotation.PutMapping;
...@@ -30,4 +31,6 @@ public interface FeignPlatformGoblinTaskClient { ...@@ -30,4 +31,6 @@ public interface FeignPlatformGoblinTaskClient {
ResponseDto<String> codeCount(); ResponseDto<String> codeCount();
@GetMapping("task/nft/order/notPayNum")
ResponseDto<String> getNotPayNum();
} }
...@@ -53,4 +53,14 @@ public class PlatformGoblinTaskHandler { ...@@ -53,4 +53,14 @@ public class PlatformGoblinTaskHandler {
} }
} }
@XxlJob(value = "sev-platform:getNotPayNum")
public void getNotPayNum() {// 查询待支付订单数量
try {
XxlJobHelper.handleSuccess("结果:" + feignPlatformGoblinTaskClient.getNotPayNum().toJson());
} 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