From 86905014b731a3f1b99b8ff5c98c8aabaab07b23 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期一, 02 九月 2024 17:03:25 +0800 Subject: [PATCH] 1.优惠券-活动添加字段 2.优惠券-领取超领控制 3.优惠券-会员优惠券的方法修改 4.优惠券-查询优惠券前根据时间更新当前用户优惠券是否过期 --- src/main/java/com/mzl/flower/service/system/UserService.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/mzl/flower/service/system/UserService.java b/src/main/java/com/mzl/flower/service/system/UserService.java index 6b1b93d..fca2da7 100644 --- a/src/main/java/com/mzl/flower/service/system/UserService.java +++ b/src/main/java/com/mzl/flower/service/system/UserService.java @@ -14,6 +14,7 @@ import com.mzl.flower.dto.response.system.UserDetailsDTO; import com.mzl.flower.dto.response.system.UserListDTO; import com.mzl.flower.entity.system.*; +import com.mzl.flower.enums.TrueOrFalseEnum; import com.mzl.flower.mapper.system.*; import com.mzl.flower.service.customer.CustomerService; import com.mzl.flower.service.partner.PartnerService; @@ -455,4 +456,10 @@ } + public List<User> getVipGradeUserList(String getVipGrade) { + QueryWrapper<User> queryWrapper=new QueryWrapper<>(); + queryWrapper.lambda().eq(User::getDeleted, TrueOrFalseEnum.FALSE.isFlag()) + .eq(User::getVipGrade,getVipGrade); + return userMapper.selectList(queryWrapper); + } } -- Gitblit v1.9.3