From f594eea9f58bee87e00bcde7ddf9d49bcbf13bec Mon Sep 17 00:00:00 2001 From: xyiege Date: Mon, 10 Oct 2022 13:51:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=B9=E9=85=8D=E8=BD=AC=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java | 4 ++-- src/main/resources/application.properties | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java b/src/main/java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java index 24592ce..5884f82 100644 --- a/src/main/java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java +++ b/src/main/java/cn/chjyj/szwh/service/impl/GoodsServiceImpl.java @@ -564,8 +564,8 @@ public class GoodsServiceImpl implements GoodsService { //如果是一次性授权或单次授权,存在托管结束时间 if (iperiod == 2) { try { - // 委托开始时间 - Date wtStart = sdf.parse(cstart); + // 委托开始时间 匹配时间格式,防止转码出错 + Date wtStart = sdf.parse(ncstart); // 判断周几 calendar.setTime(wtStart); int wkday = calendar.get(Calendar.DAY_OF_WEEK); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 44c5d41..31acd80 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -30,7 +30,7 @@ spring.redis.jedis.pool.max-wait=-1 spring.quartz.scheduler-name=szwhQuartz spring.quartz.job-store-type=memory # quartz 自动启动 -spring.quartz.auto-startup=false +spring.quartz.auto-startup=true # 延迟5s启动 spring.quartz.startup-delay=5 # 应用关闭时候等待完成