From 244f41d475c3d5fbc2cf7c006aeab7582e76fdce Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期六, 17 五月 2025 10:06:57 +0800 Subject: [PATCH] 接口编写 --- src/main/java/com/zy/nc/task/PlanOrderTask.java | 25 +++++++++++++++++++++---- 1 files changed, 21 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/nc/task/PlanOrderTask.java b/src/main/java/com/zy/nc/task/PlanOrderTask.java index 144aaf4..8f55581 100644 --- a/src/main/java/com/zy/nc/task/PlanOrderTask.java +++ b/src/main/java/com/zy/nc/task/PlanOrderTask.java @@ -41,12 +41,29 @@ } } + /** + * 閲囪喘鍒拌揣鍗� + * + * @return + */ @Scheduled(cron = "0/3 * * * * ? ") public void execute3() { -// ReturnT<String> returnT = planOrderHandler.start2(); -// if (!returnT.isSuccess()) { -// log.error(returnT.getMsg()); -// } + ReturnT<String> returnT = planOrderHandler.start3(); + if (!returnT.isSuccess()) { + log.error(returnT.getMsg()); + } } + /** + * 鐩樼偣鍗� + * + * @return + */ + @Scheduled(cron = "0/3 * * * * ? ") + public void execute4() { + ReturnT<String> returnT = planOrderHandler.start4(); + if (!returnT.isSuccess()) { + log.error(returnT.getMsg()); + } + } } -- Gitblit v1.9.1