|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
package com.glxp.mipsdl.http;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.JSON;
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
|
|
import com.alibaba.fastjson2.JSONWriter;
|
|
|
|
|
import com.alibaba.fastjson2.TypeReference;
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.alibaba.fastjson.JSONWriter;
|
|
|
|
|
import com.alibaba.fastjson.TypeReference;
|
|
|
|
|
import com.glxp.mipsdl.constant.ConstantType;
|
|
|
|
|
import com.glxp.mipsdl.dao.pzhzd.YyUcloudV31SetDao;
|
|
|
|
|
import com.glxp.mipsdl.entity.pzhzd.YyUcloudV31SetEntity;
|
|
|
|
@ -68,7 +68,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(uPurchaseinRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(uPurchaseinRequest);
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/ic/purchasein/query";
|
|
|
|
|
log.info(url + "\n" + params);
|
|
|
|
@ -104,7 +104,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(uSaleoutQueryRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(uSaleoutQueryRequest);
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/ic/saleout/query";
|
|
|
|
|
log.info(url + "\n" + params);
|
|
|
|
@ -140,7 +140,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(modifyPruchaseinRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(modifyPruchaseinRequest);
|
|
|
|
|
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/ic/purchasein/update";
|
|
|
|
@ -187,7 +187,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(modifyPruchaseinRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(modifyPruchaseinRequest);
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/ic/saleout/update";
|
|
|
|
|
log.info(url + "\n" + params);
|
|
|
|
@ -232,7 +232,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(purhaseinSignRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(purhaseinSignRequest);
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/ic/purchasein/sign";
|
|
|
|
|
log.info(url + "\n" + params);
|
|
|
|
@ -276,7 +276,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(saleoutSignRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(saleoutSignRequest);
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/ic/saleout/sign";
|
|
|
|
|
log.info(url + "\n" + params);
|
|
|
|
@ -318,7 +318,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(onhandQueryRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(onhandQueryRequest);
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/ic/onhand/query";
|
|
|
|
|
log.info("请求参数" + url + "\n" + params);
|
|
|
|
@ -356,7 +356,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(onhandQueryRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(onhandQueryRequest);
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/ic/onhand/query";
|
|
|
|
|
log.info(url + "\n" + params);
|
|
|
|
@ -393,7 +393,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(custmandocRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(custmandocRequest);
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/uapbd/custmandoc/query";
|
|
|
|
|
log.info(url + "\n" + params);
|
|
|
|
@ -431,7 +431,7 @@ public class UCloudHttpClient {
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
|
|
|
|
|
RestTemplate restTemplate = new RestTemplate();
|
|
|
|
|
String params = JSONObject.toJSONString(uInvmandocRequest, JSONWriter.Feature.WriteNullStringAsEmpty);
|
|
|
|
|
String params = JSONObject.toJSONString(uInvmandocRequest);
|
|
|
|
|
|
|
|
|
|
HttpEntity<String> httpEntity = new HttpEntity<>(params, getHeaders());
|
|
|
|
|
String url = u8Url + "/u8cloud/api/uapbd/invmandoc/query";
|
|
|
|
|