|
|
@ -37,6 +37,7 @@ import com.glxp.api.service.sync.SyncDataSetService;
|
|
|
|
import com.glxp.api.service.sync.SyncEditLogService;
|
|
|
|
import com.glxp.api.service.sync.SyncEditLogService;
|
|
|
|
import com.glxp.api.service.sync.SyncEditTypeService;
|
|
|
|
import com.glxp.api.service.sync.SyncEditTypeService;
|
|
|
|
import com.glxp.api.util.OkHttpCli;
|
|
|
|
import com.glxp.api.util.OkHttpCli;
|
|
|
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
@ -44,6 +45,7 @@ import javax.annotation.Resource;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
|
public class SpGetHttpClient {
|
|
|
|
public class SpGetHttpClient {
|
|
|
|
|
|
|
|
|
|
|
@ -232,6 +234,7 @@ public class SpGetHttpClient {
|
|
|
|
header.add("ADMIN_ID");
|
|
|
|
header.add("ADMIN_ID");
|
|
|
|
header.add(userId);
|
|
|
|
header.add(userId);
|
|
|
|
String result = okHttpCli.doPostJson(getIpUrl() + "/directToSpms" + "/udiwms/order/getSimpleOrder", json, Convert.toStrArray(header));
|
|
|
|
String result = okHttpCli.doPostJson(getIpUrl() + "/directToSpms" + "/udiwms/order/getSimpleOrder", json, Convert.toStrArray(header));
|
|
|
|
|
|
|
|
log.error("获取验收单据返回结果:" + result);
|
|
|
|
BaseResponse<IoOrderEntity> response =
|
|
|
|
BaseResponse<IoOrderEntity> response =
|
|
|
|
JSONObject.parseObject(result, new TypeReference<BaseResponse<IoOrderEntity>>() {
|
|
|
|
JSONObject.parseObject(result, new TypeReference<BaseResponse<IoOrderEntity>>() {
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -255,9 +258,10 @@ public class SpGetHttpClient {
|
|
|
|
List<String> header = (List<String>) Convert.toList(buildHeader());
|
|
|
|
List<String> header = (List<String>) Convert.toList(buildHeader());
|
|
|
|
header.add("ADMIN_ID");
|
|
|
|
header.add("ADMIN_ID");
|
|
|
|
header.add(userId);
|
|
|
|
header.add(userId);
|
|
|
|
|
|
|
|
|
|
|
|
String json = JSONUtil.toJsonStr(reviewFinishRequest);
|
|
|
|
String json = JSONUtil.toJsonStr(reviewFinishRequest);
|
|
|
|
|
|
|
|
log.error("验收自助平台单据参数:" + json);
|
|
|
|
String result = okHttpCli.doPostJson(getIpUrl() + "/directToSpms" + "/spms/inout/order/web/updateStatus", json, Convert.toStrArray(header));
|
|
|
|
String result = okHttpCli.doPostJson(getIpUrl() + "/directToSpms" + "/spms/inout/order/web/updateStatus", json, Convert.toStrArray(header));
|
|
|
|
|
|
|
|
log.error("验收自助平台单据结果:" + json);
|
|
|
|
BaseResponse<String> response =
|
|
|
|
BaseResponse<String> response =
|
|
|
|
JSONObject.parseObject(result, new TypeReference<BaseResponse<String>>() {
|
|
|
|
JSONObject.parseObject(result, new TypeReference<BaseResponse<String>>() {
|
|
|
|
});
|
|
|
|
});
|
|
|
|