From 077b35724215a5ea442de5ae03de8f33d7cfaefe Mon Sep 17 00:00:00 2001 From: wangshuai Date: Wed, 10 Jul 2024 20:23:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=B5=8B=E5=80=BC=E4=BF=AE?= =?UTF-8?q?=E6=94=B91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/quartz/task/RyTask.java | 12 ++++---- ruoyi-ui/src/views/market/whole/index.vue | 29 ++++++------------- 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java index fb9b4c0..ad50a83 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java @@ -182,17 +182,15 @@ public class RyTask { } // 话术判断 08:00 10:00 11:30 13:30 18:00 20:00 String content = ""; - LocalTime time1 = LocalTime.of(8, 00, 00); + LocalTime time1 = LocalTime.of(6, 00, 00); LocalTime time2 = LocalTime.of(10, 00, 00); - LocalTime time3 = LocalTime.of(11, 30, 00); - LocalTime time4 = LocalTime.of(13, 30, 00); - LocalTime time5 = LocalTime.of(18, 00, 00); - LocalTime time6 = LocalTime.of(20, 00, 00); + LocalTime time3 = LocalTime.of(14, 00, 00); + LocalTime time4 = LocalTime.of(17, 00, 00); if(time1.isBefore(localTime)&&localTime.isBefore(time2)){ content = busStoreConfigInfo.getContent1(); - }else if(time3.isBefore(localTime)&&localTime.isBefore(time4)){ + }else if(time2.isBefore(localTime)&&localTime.isBefore(time3)){ content = busStoreConfigInfo.getContent2(); - }else if(time5.isBefore(localTime)&&localTime.isBefore(time6)){ + }else if(time3.isBefore(localTime)&&localTime.isBefore(time4)){ content = busStoreConfigInfo.getContent3(); }else{ content = busStoreConfigInfo.getContent4(); diff --git a/ruoyi-ui/src/views/market/whole/index.vue b/ruoyi-ui/src/views/market/whole/index.vue index f145841..b78ffc7 100644 --- a/ruoyi-ui/src/views/market/whole/index.vue +++ b/ruoyi-ui/src/views/market/whole/index.vue @@ -244,7 +244,7 @@ :value="dict.value" /> - + @@ -262,11 +262,11 @@ :value="dict.value" /> - + - + - + - + - + @@ -432,19 +432,6 @@ export default { }, // 表单校验 rules: { - // storeCode: undefined, - // content1: undefined, - // content2: undefined, - // content3: undefined, - // content4: undefined, - // minOrderNum: 1, - // maxOrderNum: 1, - // timeRange: '', - // isSpliceOrder: 2, - // selfDeliveryDuration: 1, - // saleBindId: undefined, - // quota: 1, - // remark: undefined minOrderNum: [ { required: true, message: "下单次数min不能为空", trigger: "blur" } ], @@ -607,7 +594,9 @@ export default { this.open = true; if(response.data != null){ this.form = response.data; - this.timeRange = [response.data.startTime,response.data.endTime]; + if(response.data.startTime != null&&response.data.endTime != null){ + this.timeRange = [response.data.startTime,response.data.endTime]; + } this.title = "编辑配置"; }else{ this.form.storeCode = row.storeCode;