| | |
| | | private MesInvItemArnService invItemArnService; |
| | | @Autowired |
| | | private PurchaseService service; |
| | | @Autowired |
| | | private DingtalkInfoService dingtalkInfoService; |
| | | |
| | | @Test |
| | | void contextLoads() throws IOException { |
| | |
| | | @Test |
| | | void cs() throws IOException { |
| | | |
| | | String str = "22250529EHH1"; |
| | | String str = "22250702H88F;"; |
| | | |
| | | |
| | | String[] split = str.split(";"); |
| | |
| | | ApiResponse<XkyDetail> detail = apiService.sendListRequest(param, XkyDetail.class, "https://openapi.xiekeyun.com/delivery/getDetail.json"); |
| | | |
| | | XkyDetail deliveryNo = detail.getData(); |
| | | |
| | | if (deliveryNo == null) { |
| | | System.out.println("为空的送货单号" + s); |
| | | return; |
| | | } |
| | | |
| | | if ("6".equals(deliveryNo.getStatus()) || "0".equals(deliveryNo.getLogisticsStatus())) { |
| | | XkyEntity xkyEntity = new XkyEntity(); |
| | | xkyEntity.setDeliveryNo(deliveryNo.getDeliveryNo()); |
| | |
| | | } |
| | | |
| | | @Test |
| | | void cs3() throws IOException { |
| | | void cs3() throws Exception { |
| | | // dingtalkInfoService.sendMessage("CGJY20250412166"); |
| | | |
| | | service.syncPurchaseOrderDetails(); |
| | | // XkyEntity xkyEntity = new XkyEntity(); |
| | | // xkyEntity.setDeliveryNo("222505057541"); |
| | | // xkyService.remove1(xkyEntity); |
| | | |
| | | deliveryNoticeService.setDeliveryNotice(); |
| | | } |
| | | } |