| | |
| | | if(ObjectUtil.isNotEmpty(apiNewGiftSettingDto.getCouponId())){ |
| | | Long couponId = apiNewGiftSettingDto.getCouponId(); |
| | | MallGoodsCoupon mallGoodsCoupon = mallGoodsCouponMapper.selectById(couponId); |
| | | if(ObjectUtil.isNotEmpty(mallGoodsCoupon) && mallGoodsCoupon.getState() == 2){ |
| | | List<MallMemberCoupon> mallMemberCoupons = mallMemberCouponMapper.selectListByMemberIdCouponIdWithOutInviteId(memberId, couponId); |
| | | if(CollUtil.isEmpty(mallMemberCoupons)){ |
| | | //商品优惠卷如果绑定了,那么当前登陆者获取一张卷 |
| | |
| | | apiMemberNewGiftSettingVo.setCouponName(mallGoodsCoupon.getName()); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | |
| | | // this.baseMapper.updateLastLoginTime(memberId,new Date()); |