| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.List; |
| | |
| | | @Value("${erp.enable}") |
| | | private boolean isERP; |
| | | |
| | | @Scheduled(cron = "0/10 * * * * ? ") |
| | | //@Scheduled(cron = "0/10 * * * * ? ") |
| | | private void execute(){ |
| | | List<Order> orders = orderService.selectToBeHistoryOrder(isERP); |
| | | if (orders.isEmpty()) { |