| | |
| | | }
|
| | |
|
| | | @Override
|
| | | @Cacheable(value = "systemCouponCache",key="'getOrderCouponList")
|
| | | @Cacheable(value = "systemCouponCache",key="'getOrderCouponList'")
|
| | | public List<SystemCoupon> getOrderCouponList() {
|
| | | List<String> listType = new ArrayList<String>();
|
| | | listType.add(CouponTypeEnum.rebatePercentCoupon.name());
|
| | |
|
| | | return systemCouponMapper.getCouponListByType(listType);
|
| | | }
|
| | | |
| | | @Override
|
| | | @Cacheable(value = "systemCouponCache",key="'getGiveFreeCouponList'")
|
| | | public List<SystemCoupon> getGiveFreeCouponList() {
|
| | | List<String> listType = new ArrayList<String>();
|
| | | listType.add(CouponTypeEnum.freeCouponGive.name());
|
| | | return systemCouponMapper.getCouponListByType(listType);
|
| | | }
|
| | |
|
| | |
| | | List<String> listType = new ArrayList<String>();
|
| | | listType.add(CouponTypeEnum.freeCoupon.name());
|
| | | listType.add(CouponTypeEnum.welfareFreeCoupon.name());
|
| | | |
| | | listType.add(CouponTypeEnum.freeCouponBuy.name());
|
| | | return systemCouponMapper.getCouponListByType(listType);
|
| | | }
|
| | |
|