From 3fc84b5d4b36ce9ab5cea84ee1b54942c8e04ef9 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 08 八月 2019 16:55:52 +0800 Subject: [PATCH] 拼多多短链修改 --- fanli/src/main/java/com/yeshi/fanli/job/order/jd/UpdateJDOrderJob.java | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/job/order/jd/UpdateJDOrderJob.java b/fanli/src/main/java/com/yeshi/fanli/job/order/jd/UpdateJDOrderJob.java index 5d1eb3e..f766be4 100644 --- a/fanli/src/main/java/com/yeshi/fanli/job/order/jd/UpdateJDOrderJob.java +++ b/fanli/src/main/java/com/yeshi/fanli/job/order/jd/UpdateJDOrderJob.java @@ -13,6 +13,7 @@ import com.yeshi.fanli.entity.jd.JDOrder; import com.yeshi.fanli.exception.jd.JDOrderException; import com.yeshi.fanli.service.inter.jd.JDOrderService; +import com.yeshi.fanli.util.Constant; import com.yeshi.fanli.util.RedisManager; import com.yeshi.fanli.util.cmq.JDOrderCMQManager; import com.yeshi.fanli.util.jd.JDApiUtil; @@ -57,8 +58,8 @@ */ @Scheduled(cron = "0 0/1 * * * ? ") public void updateSoonOrder() { - // if (!Constant.IS_TASK) - // return; + if (!Constant.IS_TASK) + return; long now = System.currentTimeMillis(); JDOrderResult result = JDApiUtil.getOrderList(1, 200, new Date(now), JDApiUtil.ORDER_TYPE_CREATETIME); @@ -75,8 +76,8 @@ */ @Scheduled(cron = "0 0/10 * * * ? ") public void updateUpdateOrder() { - // if (!Constant.IS_TASK) - // return; + if (!Constant.IS_TASK) + return; List<JDOrder> jdOrderList = new ArrayList<>(); int pageSize = 200; int page = 1; -- Gitblit v1.8.0