From ae9ee648c604ed1750d021801da6623ff4ed94e2 Mon Sep 17 00:00:00 2001 From: zhaohengkun Date: Tue, 22 Oct 2024 13:35:39 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EventMarketing/newCertificate/index.vue | 99 ++++++++++--------- .../controller/CardCouponUserController.java | 2 +- .../cardCoupon/entity/CardCouponUser.java | 2 + .../service/CardCouponUserService.java | 2 + .../service/impl/CardCouponServiceImpl.java | 9 +- .../impl/CardCouponUserServiceImpl.java | 9 ++ .../views/cashier/NewComponents/newHome.vue | 6 +- 7 files changed, 78 insertions(+), 51 deletions(-) diff --git a/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue b/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue index 6da6e6b7e..884a27adc 100644 --- a/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue +++ b/fuintAdmin/src/views/EventMarketing/newCertificate/index.vue @@ -364,8 +364,10 @@ 不可用时间段 - -
+ +
+ +
每周 @@ -387,37 +389,40 @@ -
-
- - - - 至 - - - -
-
- -
+ + + + + + 至 + + + +
+ +
+ + - 每周 +
+ 每周 - +
+ 每月 - +
-
-
- - - - 至 - - - -
-
+ + + + + + 至 + + + +
+
@@ -471,7 +476,7 @@
- + diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/controller/CardCouponUserController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/controller/CardCouponUserController.java index 4bb6c46c5..4a8e26fe9 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/controller/CardCouponUserController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/controller/CardCouponUserController.java @@ -66,7 +66,7 @@ public class CardCouponUserController extends BaseController { @PostMapping public ResponseObject insert(@RequestBody CardCouponUser cardCouponUser) { - return getSuccessResult(this.cardCouponUserService.save(cardCouponUser)); + return getSuccessResult(this.cardCouponUserService.insert(cardCouponUser)); } /** diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/entity/CardCouponUser.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/entity/CardCouponUser.java index a0729d5d6..26f3ead29 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/entity/CardCouponUser.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/entity/CardCouponUser.java @@ -56,6 +56,8 @@ public class CardCouponUser extends Model { private String updateBy; //更新时间 private Date updateTime; + //核销码 + private String verificationCode; } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/CardCouponUserService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/CardCouponUserService.java index edd644c24..5d0a3b309 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/CardCouponUserService.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/CardCouponUserService.java @@ -31,6 +31,8 @@ public interface CardCouponUserService extends IService { */ boolean userCanGet(Integer couponId,Integer userId); + Boolean insert(CardCouponUser cardCouponUser); + /** * 查会员在某店铺当前时间可用的所有优惠券 * @author vinjor-M diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/impl/CardCouponServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/impl/CardCouponServiceImpl.java index 52b41bd01..228c84a52 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/impl/CardCouponServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardCoupon/service/impl/CardCouponServiceImpl.java @@ -15,6 +15,7 @@ import com.fuint.business.marketingActivity.cardCoupon.entity.CardCouponUser; import com.fuint.business.marketingActivity.cardCoupon.mapper.CardCouponMapper; import com.fuint.business.marketingActivity.cardCoupon.mapper.CardCouponUserMapper; import com.fuint.business.marketingActivity.cardCoupon.service.CardCouponService; +import com.fuint.business.marketingActivity.cardCoupon.service.CardCouponUserService; import com.fuint.business.marketingActivity.cardCoupon.vo.CardCouponUniVo; import com.fuint.business.marketingActivity.cardCoupon.vo.CardCouponVO; import com.fuint.business.petrolStationManagement.entity.OilName; @@ -29,6 +30,7 @@ import com.fuint.common.dto.AccountInfo; import com.fuint.common.util.TokenUtil; import com.fuint.framework.web.ResponseObject; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -50,6 +52,9 @@ public class CardCouponServiceImpl extends ServiceImpl { if (res.code == 200){