From 2e3575b4de09c4ad854706e4da2a490fbcfd5a7d Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Thu, 7 Mar 2024 16:11:59 +0800 Subject: [PATCH] bug --- .../activeConsumption/index.vue | 4 +++- .../impl/ActiveConsumptionServiceImpl.java | 20 +++++++++---------- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue index 449a09161..7a51bea9e 100644 --- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue @@ -213,7 +213,7 @@ -
+
选择优惠券
新增
{ this.form = response.data; + if (!response.data.activeGift) this.form.activeGift = "" if(response.data.activeConsumptionChildList && response.data.activeConsumptionChildList.length >0){ this.form.tableDatas = response.data.activeConsumptionChildList.filter(item => item.activeGift == '1') this.tableData1 = response.data.activeConsumptionChildList.filter(item => item.activeGift == '1') this.tableDatas = response.data.activeConsumptionChildList.filter(item => item.activeGift == '2') this.form.shiwudata = response.data.activeConsumptionChildList.filter(item => item.activeGift == '4') } + console.log(this.tableData1) this.open = true; this.title = "修改消费有礼活动"; }); diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java index f8d819e82..f0856c08b 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeConsumption/service/impl/ActiveConsumptionServiceImpl.java @@ -287,17 +287,17 @@ public class ActiveConsumptionServiceImpl extends ServiceImpl