diff --git a/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyClient.java b/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyClient.java index 3715ada..70e3ac1 100644 --- a/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyClient.java +++ b/src/main/java/com/glxp/mipsdl/client/phxyy/PhxyyClient.java @@ -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); diff --git a/src/main/java/com/glxp/mipsdl/http/HttpClient.java b/src/main/java/com/glxp/mipsdl/http/HttpClient.java index 302ccf8..8de5e3b 100644 --- a/src/main/java/com/glxp/mipsdl/http/HttpClient.java +++ b/src/main/java/com/glxp/mipsdl/http/HttpClient.java @@ -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 {