| | |
| | | |
| | | } |
| | | |
| | | @Scheduled(cron = "0 0 0/1 * * ? ") |
| | | public void expireCoupon() { |
| | | List<MallMemberCoupon> mallMemberCoupons = mallMemberCouponMapper.selectListByExpireTime(DateUtil.date()); |
| | | if(CollUtil.isEmpty(mallMemberCoupons)){ |
| | | return; |
| | | } |
| | | for(MallMemberCoupon mallMemberCoupon : mallMemberCoupons){ |
| | | mallMemberCoupon.setState(3); |
| | | mallMemberCouponMapper.updateById(mallMemberCoupon); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 更新发票记录表数据 |
| | | * 定时,每天凌晨一点 |
| | | * 已完成的订单,更新到发票记录中 |
| | | */ |
| | | @Scheduled(cron = "0 0 1 * * ?") |
| | | public void mallInvoiceJob() { |
| | | mallInvoiceService.mallInvoiceJob(); |
| | | } |
| | | |
| | | } |