| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | |
| | | private IMallAchieveService mallAchieveService; |
| | | |
| | | /** |
| | | * 普通商品结算 |
| | | * 普通商品结算 -- 10天结算一次 |
| | | */ |
| | | @Scheduled(cron = "0 0 0 * * ?") |
| | | // @Scheduled(cron = "0 0 0 * * ?") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void normalGoodsSettlementJob() { |
| | | log.info("普通商品结算"); |
| | | List<MallOrderInfo> orderInfos = mallOrderInfoMapper.selectOrderInfoWithNormalGoods(DateUtil.offsetDay(new Date(), -10)); |