| | |
| | | package com.gs.xky; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.gs.xky.config.*; |
| | | import com.gs.xky.config.ApiResponse; |
| | | import com.gs.xky.config.BodyParam; |
| | | import com.gs.xky.config.DataAcquisitionConfiguration; |
| | | import com.gs.xky.config.XkyCommonParam; |
| | | import com.gs.xky.dto.BarcodeDeliveryNo; |
| | | import com.gs.xky.dto.XkyDetail; |
| | | import com.gs.xky.entity.MesInvItemArn; |
| | |
| | | |
| | | @Autowired |
| | | private MesInvItemArnService invItemArnService; |
| | | @Autowired |
| | | private PurchaseService service; |
| | | |
| | | @Test |
| | | void contextLoads() throws IOException { |
| | |
| | | System.out.println(jsonString); |
| | | } |
| | | |
| | | |
| | | @Test |
| | | void cs2() throws IOException { |
| | | // DingTalkParam dingTalkParam = new DingTalkParam(1); |
| | |
| | | |
| | | @Test |
| | | void cs3() throws IOException { |
| | | String str = "{\"state\":\"500\",\"msg\":\"{\\\"Result\\\":{\\\"ResponseStatus\\\":{\\\"ErrorCode\\\":500,\\\"IsSuccess\\\":false,\\\"Errors\\\":[{\\\"FieldName\\\":null,\\\"Message\\\":\\\"明细信息第1行的生产通知单值为:【127147】不存在;\\\\r\\\\n\\\",\\\"DIndex\\\":0}],\\\"SuccessEntitys\\\":[],\\\"SuccessMessages\\\":[],\\\"MsgCode\\\":11},\\\"Id\\\":\\\"\\\",\\\"Number\\\":\\\"\\\",\\\"NeedReturnData\\\":[{}]}}\"}"; |
| | | |
| | | service.syncPurchaseOrderDetails(); |
| | | } |
| | | } |