平和县医院上传his单据问题

phxyy
qiuyt 4 weeks ago
parent ad3eac8e0d
commit 96db4ef39a

@ -337,6 +337,7 @@ public class PhxyyClient extends CommonHttpClient {
}
items.add(item);
} catch (Exception e) {
log.error(e.getMessage(), e);
uploadLog.setStatus(3);
String errMsg = "提交失败,错误信息:" + e.getMessage();
@ -362,7 +363,13 @@ public class PhxyyClient extends CommonHttpClient {
for (IoCodeEntity codeDetaiEntity : ioCodeEntities) {
if (CollUtil.isNotEmpty(stockOrderDetailEntities)) {
for (IoOrderDetailBizEntity stockOrderDetailEntity : stockOrderDetailEntities) {
if (IntUtil.value(codeDetaiEntity.getRelId()) == IntUtil.value(stockOrderDetailEntity.getBindRlFk())
log.error("详情判断===1===");
log.error("{}", codeDetaiEntity.getRelId() == Long.valueOf(stockOrderDetailEntity.getBindRlFk()));
log.error("{}", StrUtil.trimToEmpty(codeDetaiEntity.getBatchNo()).equals(StrUtil.trimToEmpty(stockOrderDetailEntity.getBatchNo())));
log.error("{}", stockOrderDetailEntity.getBindRlFk().equals(codeDetaiEntity.getRelId()));
log.error("详情判断===2===");
if (stockOrderDetailEntity.getBindRlFk().equals(codeDetaiEntity.getRelId()+"")
&& StrUtil.trimToEmpty(codeDetaiEntity.getBatchNo()).equals(StrUtil.trimToEmpty(stockOrderDetailEntity.getBatchNo()))) {
IoOrderDetailBizEntity item = new IoOrderDetailBizEntity();
BeanUtils.copyProperties(stockOrderDetailEntity, item);

@ -1,6 +1,7 @@
package com.glxp.mipsdl.http;
import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONUtil;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.JSONWriter;
import com.glxp.mipsdl.config.HospConfig;
@ -63,9 +64,10 @@ public class HttpClient {
public String postJson(String url, Object object) {
//请求时间
Date date = new Date();
log.error(object + "====" + object);
//转json字符串时将空属性转换为空字符串
String json = JSONObject.toJSONString(object);
log.info(url + "\n" + json);
String json = JSONUtil.toJsonStr(object);
log.error(url + "\n" + json);
String response = "";
Integer status;
try {

Loading…
Cancel
Save