啊鑫
2025-05-26 b8b017c64b4b05a596b95406fed7b1af9f4c6ba8
src/test/java/com/gs/xky/XkyApplicationTests.java
@@ -1,7 +1,10 @@
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;
@@ -34,6 +37,8 @@
    @Autowired
    private MesInvItemArnService invItemArnService;
    @Autowired
    private PurchaseService service;
    @Test
    void contextLoads() throws IOException {
@@ -132,7 +137,6 @@
        System.out.println(jsonString);
    }
    @Test
    void cs2() throws IOException {
//        DingTalkParam dingTalkParam = new DingTalkParam(1);
@@ -154,7 +158,7 @@
    @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();
    }
}