From f0fc7d2684ee50b885b7003bb06eb1663cfbaa7f Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期二, 12 三月 2019 15:38:19 +0800 Subject: [PATCH] 后台编辑动态的时候文本输入需要去除前后的空格 --- fanli/src/main/java/com/yeshi/fanli/job/UpdateOrderJob.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/job/UpdateOrderJob.java b/fanli/src/main/java/com/yeshi/fanli/job/UpdateOrderJob.java index cfe149d..b9d967f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/job/UpdateOrderJob.java +++ b/fanli/src/main/java/com/yeshi/fanli/job/UpdateOrderJob.java @@ -16,7 +16,6 @@ import com.yeshi.fanli.entity.taobao.TaoBaoOrder; import com.yeshi.fanli.entity.taobao.TaoBaoUnionConfig; import com.yeshi.fanli.entity.taobao.TaoBaoWeiQuanOrder; -import com.yeshi.fanli.exception.TaoBaoOrderException; import com.yeshi.fanli.log.LogHelper; import com.yeshi.fanli.service.inter.common.DataMonitorService; import com.yeshi.fanli.service.inter.hongbao.HongBaoService; @@ -352,11 +351,11 @@ } // 姣�15鍒嗛挓鐖彇涓�娆� - // @Scheduled(cron = "0 0/15 * * * ? ") + @Scheduled(cron = "0 0/15 * * * ? ") public void doJob1() { - // if (!Constant.IS_TASK) - // return; - long currentTime = System.currentTimeMillis(); + if (!Constant.IS_TASK) + return; + long currentTime = System.currentTimeMillis() - 1000 * 60; String h = TimeUtil.getGernalTime(currentTime, "HH"); String m = TimeUtil.getGernalTime(currentTime, "mm"); int mm = Integer.parseInt(h) * 60 + Integer.parseInt(m); @@ -375,7 +374,8 @@ public void doJob6() { if (!Constant.IS_TASK) return; - long endTime = System.currentTimeMillis(); + long endTime = System.currentTimeMillis() - 1000 * 60; + ; updateOrder(endTime - 1000 * 60 * 20L, endTime); } -- Gitblit v1.8.0