From 9e1da10fc5de5a596995ef9b5dadf8d3b3b41754 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com>
Date: Tue, 5 Mar 2024 15:55:51 +0800
Subject: [PATCH] bug
---
.../views/EventMarketing/SaveBlock/index.vue | 12 ++++----
.../EventMarketing/cardExchange/index.vue | 29 +++++++++++--------
.../EventMarketing/cardFavorable/index.vue | 5 ++++
.../views/EventMarketing/giftBlock/index.vue | 5 ++++
.../impl/ActiveOneCouponServiceImpl.java | 28 +++++++++++++++++-
.../activeOneCoupon/vo/ActiveOneCouponVO.java | 5 ++++
.../cardExchange/entity/CardExchange.java | 1 +
.../service/impl/CardExchangeServiceImpl.java | 11 +++++--
.../cardFavorable/entity/CardFavorable.java | 1 +
.../impl/CardFavorableServiceImpl.java | 5 ++++
10 files changed, 80 insertions(+), 22 deletions(-)
diff --git a/fuintAdmin/src/views/EventMarketing/SaveBlock/index.vue b/fuintAdmin/src/views/EventMarketing/SaveBlock/index.vue
index ae260108d..e64b3ad5f 100644
--- a/fuintAdmin/src/views/EventMarketing/SaveBlock/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/SaveBlock/index.vue
@@ -27,10 +27,9 @@
align="center"
style="width: 100%">
+ label="序号"
+ type="index"
+ >
- 油品券
- 商品券
- 通用券
+ 商品兑换券
+ 洗车券
-
-
- 在线
- 下线
-
-
-
-
- 启用
- 禁用
-
-
+
@@ -103,6 +95,19 @@
{{ scope.row.createTime }}
+
+
+ 在线
+ 下线
+
+
+
+
+ 启用
+ 禁用
+
+
+
+
+
diff --git a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue
index b8f310dc9..416957b64 100644
--- a/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue
+++ b/fuintAdmin/src/views/EventMarketing/giftBlock/index.vue
@@ -174,6 +174,11 @@
+
+
ids = new ArrayList<>();
ActiveOneCouponVO activeOneCouponVO = new ActiveOneCouponVO();
ActiveOneCoupon oneCoupon = getById(id);
BeanUtils.copyProperties(oneCoupon, activeOneCouponVO);
@@ -191,18 +191,29 @@ public class ActiveOneCouponServiceImpl extends ServiceImpl activeOneCouponChildren = activeOneCouponChildService.list(queryWrapper);
ArrayList cardFavorableArrayList = new ArrayList<>();
ArrayList cardExchangeArrayList = new ArrayList<>();
+ ArrayList cardFavorableIds = new ArrayList<>();
+ ArrayList cardExchangeIds = new ArrayList<>();
for (ActiveOneCouponChild activeOneCouponChild : activeOneCouponChildren) {
//优惠券
if (activeOneCouponChild.getActiveGift().equals("1")){
CardFavorable byId = cardFavorableService.getById(activeOneCouponChild.getVouchersId());
cardFavorableArrayList.add(byId);
+ cardFavorableIds.add(byId.getId());
}
//兑换券
if (activeOneCouponChild.getActiveGift().equals("2")){
CardExchange byId = exchangeService.getById(activeOneCouponChild.getVouchersId());
cardExchangeArrayList.add(byId);
+ cardExchangeIds.add(byId.getId());
}
}
+ String[] split = oneCoupon.getGradeId().split(",");
+ for (String s : split) {
+ ids.add(s);
+ }
+ activeOneCouponVO.setGradeIds(ids);
+ activeOneCouponVO.setCardExchangeIds(cardExchangeIds);
+ activeOneCouponVO.setCardFavorableIds(cardFavorableIds);
activeOneCouponVO.setCardFavorableList(cardFavorableArrayList);
activeOneCouponVO.setCardExchangeList(cardExchangeArrayList);
return activeOneCouponVO;
@@ -214,6 +225,21 @@ public class ActiveOneCouponServiceImpl extends ServiceImpl vosList;
+ //会员等级ids
+ private List gradeIds;
//优惠券领取数量
private Integer couponReceiveCount;
//优惠券使用数量
@@ -35,4 +37,7 @@ public class ActiveOneCouponVO extends ActiveOneCoupon implements Serializable {
private List cardFavorableList;
private List cardExchangeList;
private List userVos;
+ private List cardFavorableIds;
+ //兑换券ids
+ private List cardExchangeIds;
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/entity/CardExchange.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/entity/CardExchange.java
index 8f5ef5691..4f096341f 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/entity/CardExchange.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/entity/CardExchange.java
@@ -29,6 +29,7 @@ public class CardExchange extends Model {
private Integer storeId;
//是否在线 0:在线 1: 下线
private String isonline;
+ private String cardDetail;
//兑换券状态 0:启用 1: 禁用
private String status;
//兑换券名称
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/service/impl/CardExchangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/service/impl/CardExchangeServiceImpl.java
index 9131d2142..3d678e2f0 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/service/impl/CardExchangeServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardExchange/service/impl/CardExchangeServiceImpl.java
@@ -55,8 +55,15 @@ public class CardExchangeServiceImpl extends ServiceImpl {
private Integer storeId;
//是否在线 0:在线 1: 下线
private String isonline;
+ private String cardDetail;
//优惠券名称
private String name;
//卡券类型 0:油品券 1:商品券 2:通用券
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/impl/CardFavorableServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/impl/CardFavorableServiceImpl.java
index bd1d5e8b4..65e7457e0 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/impl/CardFavorableServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardFavorable/service/impl/CardFavorableServiceImpl.java
@@ -70,6 +70,11 @@ public class CardFavorableServiceImpl extends ServiceImpl