| | |
| | | package com.stylefeng.guns.modular.system.util; |
| | | |
| | | |
| | | import com.stylefeng.guns.modular.crossCity.server.IOrderCrossCityService; |
| | | import com.stylefeng.guns.modular.system.service.IUserCouponRecordService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | |
| | | |
| | | @Autowired |
| | | private IUserCouponRecordService userCouponRecordService; |
| | | @Autowired |
| | | private IOrderCrossCityService orderCrossCityService; |
| | | |
| | | |
| | | |
| | |
| | | try { |
| | | //修改过期的优惠券 |
| | | userCouponRecordService.updateTimeOut(); |
| | | // 自动取消未支付订单 |
| | | orderCrossCityService.autoCancelOrder(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |