peng
2 天以前 a21e8d474d3a7a1cb897e69882bf6a563a611184
framework/src/main/java/cn/lili/modules/promotion/serviceimpl/CouponServiceImpl.java
@@ -91,6 +91,21 @@
    @Autowired
    private MemberCouponMapper memberCouponMapper;
    @Override
    public Long getCouponsCountByIdAndMemberId(String couponId){
        AuthUser currentUser = Objects.requireNonNull(UserContext.getCurrentUser());
        Long count = 0L;
        if (StringUtils.isNotBlank(currentUser.getId())) {
            count = new LambdaQueryChainWrapper<>(memberCouponMapper)
                    .eq(MemberCoupon::getCouponId,couponId)
                    .eq(MemberCoupon::getMemberId,currentUser.getId())
                    .count();
        }
        return count;
    }
    @Override
    public void getUserCouponsStatus(List<CouponVO> list) {
        AuthUser currentUser = Objects.requireNonNull(UserContext.getCurrentUser());