| | |
| | | import com.core.exception.CoolException; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | 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 org.springframework.web.bind.annotation.GetMapping; |
| | |
| | | /** |
| | | * 持久化销售订单 |
| | | */ |
| | | @Scheduled(cron = "0/45 * * * * ? ") |
| | | // @Scheduled(cron = "0/45 * * * * ? ") |
| | | @Transactional |
| | | // @PostConstruct |
| | | public void getOrdersExecute(){ |
| | |
| | | /** |
| | | * 库存上传 |
| | | */ |
| | | @Scheduled(cron = "0/15 * * * * ? ") |
| | | // @Scheduled(cron = "0/15 * * * * ? ") |
| | | @GetMapping("test2") |
| | | public void uploadStockExecute(){ |
| | | try { |