| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.mzl.flower.config.security.SecurityUtils; |
| | | import com.mzl.flower.dto.request.coupon.*; |
| | | import com.mzl.flower.dto.response.coupon.CouponPointStatisVO; |
| | | import com.mzl.flower.dto.response.coupon.CouponTemplateVO; |
| | | import com.mzl.flower.entity.coupon.CouponRecordDO; |
| | | import com.mzl.flower.entity.coupon.CouponTemplateCustomerDO; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public CouponTemplateVO statisCouponTemplatePoint(QueryCouponStatisticsBO queryCouponStatisticsBO) { |
| | | |
| | | //TODO 优惠券总数 |
| | | couponRecordService.statisCouponTemplateCount(queryCouponStatisticsBO); |
| | | |
| | | //TODO 本月兑换优惠券总数 |
| | | couponRecordService.statisCouponTemplateCurMonCount(queryCouponStatisticsBO); |
| | | |
| | | //TODO 本月兑换积分总数 |
| | | couponRecordService.statisCouponPointCurMonPontAmonut(queryCouponStatisticsBO); |
| | | |
| | | return null; |
| | | public CouponPointStatisVO statisCouponTemplatePoint(QueryCouponStatisticsBO queryCouponStatisticsBO) { |
| | | CouponPointStatisVO vo=new CouponPointStatisVO(); |
| | | //优惠券总数 |
| | | vo.setTotalAmount(couponRecordService.statisCouponTemplateCount(queryCouponStatisticsBO)); |
| | | // 本月兑换优惠券总数 |
| | | vo.setCurMonExchangeAmount(couponRecordService.statisCouponTemplateCurMonCount(queryCouponStatisticsBO)); |
| | | // 本月兑换积分总数 |
| | | vo.setCurMonExchangePointAmount(couponRecordService.statisCouponPointCurMonPontAmonut(queryCouponStatisticsBO)); |
| | | return vo; |
| | | } |
| | | |
| | | @Override |
| | | public List<CouponTemplateVO> getPointList(QueryActivePointCouponDTO dto) { |
| | | if(StringUtils.isBlank(dto.getOrderStr())){ |
| | | dto.setOrderStr(" create_time desc "); |
| | | } |
| | | return couponTemplateMapperCustom.getCouponPointList(dto); |
| | | } |
| | | |
| | | @Override |
| | | public Page<CouponTemplateVO> getPointPage(Page page, QueryActivePointCouponDTO dto) { |
| | | if(StringUtils.isBlank(dto.getOrderStr())){ |
| | | dto.setOrderStr(" create_time desc "); |
| | | } |
| | | return couponTemplateMapperCustom.getPointPage(page,dto); |
| | | } |
| | | |
| | | } |