报价时间调整
This commit is contained in:
parent
481bc10d43
commit
e422441212
@ -176,10 +176,10 @@ public class SealedQuotationServiceImpl implements SealedQuotationService {
|
||||
data.put("IsAutoSubmitAndAudit",isAutoAdjustField);
|
||||
SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
String format = simpleDateFormat.format(new Date());
|
||||
data.put("FQuoteDate",format);
|
||||
params.put("FQuoteDate",format);
|
||||
if (isAutoAdjustField.equals("true")) {
|
||||
data.put("FIsConfirm",true);
|
||||
data.put("FConfirmDate",true);
|
||||
params.put("FConfirmDate",format);
|
||||
}
|
||||
data.put("Model",params);
|
||||
|
||||
@ -231,36 +231,6 @@ public class SealedQuotationServiceImpl implements SealedQuotationService {
|
||||
|
||||
}
|
||||
|
||||
public String SAVA_API(String apiCookie, Map<String, Object> data,String url) {
|
||||
// 设置请求头信息
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.set("Content-Type", "application/json");
|
||||
headers.set("kdservice-sessionid", apiCookie);
|
||||
|
||||
// 设置请求参数
|
||||
ObjectMapper objectMapper = new ObjectMapper();
|
||||
String jsonData = null;
|
||||
try {
|
||||
jsonData = objectMapper.writeValueAsString(data);
|
||||
} catch (JsonProcessingException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
// String url = "http://1.14.142.111:9090/K3CLOUD/Kingdee.BOS.WebApi.ServicesStub.DynamicFormService.ExecuteBillQuery.common.kdsvc";
|
||||
HttpEntity<String> requestEntity = new HttpEntity<>(jsonData, headers);
|
||||
|
||||
// 发送POST请求
|
||||
ResponseEntity<String> responseEntity = restTemplate.exchange(url, HttpMethod.POST, requestEntity, String.class);
|
||||
|
||||
// 获取返回信息
|
||||
String response = responseEntity.getBody();
|
||||
if (Objects.equals(response, "[]")) {
|
||||
return null;
|
||||
} else {
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public String loginAPI(String apiCookie) {
|
||||
Map<String, Object> params = new HashMap<>();
|
||||
params.put("acctID", "63e200975197e2");
|
||||
|
Loading…
x
Reference in New Issue
Block a user