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 # 应用关闭时候等待完成