| | |
| | | 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; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import zy.cloud.wms.common.service.erp.entity.*; |
| | | import zy.cloud.wms.manager.entity.*; |
| | | import zy.cloud.wms.manager.mapper.CustOrderMapper; |
| | |
| | | * Created by vincent on 2020/11/27 |
| | | */ |
| | | @Slf4j |
| | | @Component |
| | | @RestController |
| | | //@Component |
| | | //@RestController |
| | | public class ErpScheduler { |
| | | |
| | | public static final String URI = "http://8.133.182.21:8080/api"; |
| | |
| | | boolean complete = true; |
| | | Set<String> existNumbers = new HashSet<>(); |
| | | |
| | | String cancelNumber = ""; |
| | | if (!custOrderService.updateStatus(cancelNumber, 5)) { |
| | | throw new CoolException("修改订单状态失败"); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | } catch (IOException e) { |