diff --git a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue index 2b0b243aa..79391359f 100644 --- a/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeConsumption/index.vue @@ -131,6 +131,12 @@ 等级会员 + + + + + + @@ -336,11 +342,6 @@ - - - - - @@ -988,6 +989,10 @@ export default { }); }, qiyong(row){ + if(row.isonline == 1){ + this.$message.error("下线不可进行操作") + return + } getActiveConsumption(row.id).then(response => { // this.form = response.data; let data = response.data @@ -1001,6 +1006,10 @@ export default { }); }, jinyong(row){ + if(row.isonline == 1){ + this.$message.error("下线不可进行操作") + return + } getActiveConsumption(row.id).then(response => { // this.form = response.data; let data = response.data diff --git a/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue b/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue index c6655dd6b..20b12075f 100644 --- a/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeDiscount/index.vue @@ -405,6 +405,11 @@ export default { }); }, qiyong(row){ + // + if(row.isonline == 1){ + this.$message.error("下线不可进行操作") + return + } getActiveDiscount(row.id).then(response => { // this.form = response.data; let data = response.data @@ -418,6 +423,10 @@ export default { }); }, jinyong(row){ + if(row.isonline == 1){ + this.$message.error("下线不可进行操作") + return + } getActiveDiscount(row.id).then(response => { // this.form = response.data; let data = response.data diff --git a/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue b/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue index 9801a2ad7..a452019d8 100644 --- a/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeFullminus/index.vue @@ -405,6 +405,10 @@ export default { }); }, qiyong(row){ + if(row.isonline == 1){ + this.$message.error("下线不可进行操作") + return + } getActiveFullminus(row.id).then(response => { // this.form = response.data; let data = response.data @@ -418,6 +422,10 @@ export default { }); }, jinyong(row){ + if(row.isonline == 1){ + this.$message.error("下线不可进行操作") + return + } getActiveFullminus(row.id).then(response => { // this.form = response.data; let data = response.data diff --git a/fuintAdmin/src/views/EventMarketing/activeRecommend/index.vue b/fuintAdmin/src/views/EventMarketing/activeRecommend/index.vue index 5555a2055..ca90549ad 100644 --- a/fuintAdmin/src/views/EventMarketing/activeRecommend/index.vue +++ b/fuintAdmin/src/views/EventMarketing/activeRecommend/index.vue @@ -1,5 +1,5 @@ diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java index 5b01abf04..9a60f3d89 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeExchange/service/impl/ActiveExchangeServiceImpl.java @@ -215,8 +215,10 @@ public class ActiveExchangeServiceImpl implements ActiveExchangeService { cardFavorableLambdaQueryWrapper.in(CardFavorable::getOilType,transferDTO.getOilName()); cardFavorableLambdaQueryWrapper.le(CardFavorable::getSatisfiedAmount,transferDTO.getOilPrice() * transferDTO.getOilLiters()); List list1 = cardFavorableService.list(cardFavorableLambdaQueryWrapper); - BeanUtils.copyProperties(list1.get(0), exchangeFavorableVO); - exchangeFavorableVOArrayList.add(exchangeFavorableVO); + if (list1.size()>0){ + BeanUtils.copyProperties(list1.get(0), exchangeFavorableVO); + exchangeFavorableVOArrayList.add(exchangeFavorableVO); + } } return exchangeFavorableVOArrayList; }