| | |
| | | import com.yeshi.fanli.entity.bus.user.UserInfo;
|
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCoupon;
|
| | | import com.yeshi.fanli.entity.bus.user.UserSystemCouponRecord;
|
| | | import com.yeshi.fanli.entity.system.SystemCoupon;
|
| | | import com.yeshi.fanli.entity.system.SystemCoupon.CouponTypeEnum;
|
| | | import com.yeshi.fanli.service.inter.config.SystemCouponService;
|
| | | import com.yeshi.fanli.service.inter.count.HongBaoV2CountService;
|
| | | import com.yeshi.fanli.service.inter.count.UserSystemCouponCountService;
|
| | |
| | | }
|
| | |
|
| | | for (SystemCouponVO systemCouponVO: list) {
|
| | | BigDecimal money = null;
|
| | | if (systemCouponVO.getType() != CouponTypeEnum.freeCouponGive) |
| | | money = userSystemCouponCountMapper.countFreeMoneyByCouponId(systemCouponVO.getId());
|
| | |
|
| | | BigDecimal money = userSystemCouponCountMapper.countFreeMoneyByCouponId(systemCouponVO.getId());
|
| | | if (money == null) {
|
| | | if (money == null) |
| | | money = new BigDecimal(0);
|
| | | }
|
| | | |
| | | systemCouponVO.setMoney(money);
|
| | | }
|
| | | return list;
|