| | |
| | | @Autowired |
| | | private IOrderService orderService; |
| | | |
| | | @Autowired |
| | | private PushMinistryOfTransportUtil pushMinistryOfTransportUtil; |
| | | |
| | | @Value("${filePath}") |
| | | private String filePath; |
| | | |
| | | @Value("${pushMinistryOfTransport}") |
| | | private boolean pushMinistryOfTransport; |
| | | |
| | | |
| | | |
| | |
| | | out.flush(); |
| | | out.close(); |
| | | } |
| | | |
| | | new Thread(new Runnable() { |
| | | @Override |
| | | public void run() { |
| | | if(pushMinistryOfTransport && orderPosition.getOrderType() == 1){//上传数据 |
| | | pushMinistryOfTransportUtil.positionDriver(orderPosition.getOrderId()); |
| | | pushMinistryOfTransportUtil.positionVehicle(orderPosition.getOrderId()); |
| | | } |
| | | } |
| | | }).start(); |
| | | |
| | | } |
| | | |