|  |  |  | 
|---|
|  |  |  | import cc.mrbird.febs.common.utils.SpringContextHolder; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.entity.MallMemberCoupon; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.mapper.MallMemberCouponMapper; | 
|---|
|  |  |  | import cc.mrbird.febs.mall.service.MallInvoiceService; | 
|---|
|  |  |  | import cc.mrbird.febs.pay.util.WechatConfigure; | 
|---|
|  |  |  | import cn.hutool.core.collection.CollUtil; | 
|---|
|  |  |  | import cn.hutool.core.date.DateUtil; | 
|---|
|  |  |  | 
|---|
|  |  |  | private RedisUtils redisUtils; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private MallMemberCouponMapper mallMemberCouponMapper; | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private MallInvoiceService mallInvoiceService; | 
|---|
|  |  |  | @Resource | 
|---|
|  |  |  | RestTemplate restTemplate; | 
|---|
|  |  |  | //    @Autowired | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 更新发票记录表数据 | 
|---|
|  |  |  | * 定时,每天凌晨一点 | 
|---|
|  |  |  | * 已完成的订单,更新到发票记录中 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Scheduled(cron = "0 0 1 * * ?") | 
|---|
|  |  |  | public void mallInvoiceJob() { | 
|---|
|  |  |  | mallInvoiceService.mallInvoiceJob(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|