Browse Source

ifs错误日志

master
han\hanst 3 weeks ago
parent
commit
a5bc664f18
  1. 22
      src/main/java/com/gaotao/modules/api/service/impl/IfsApiIssueAndReturnServiceImpl.java

22
src/main/java/com/gaotao/modules/api/service/impl/IfsApiIssueAndReturnServiceImpl.java

@ -554,7 +554,16 @@ public class IfsApiIssueAndReturnServiceImpl implements IfsApiIssueAndReturnServ
jsonBody = objectMapper.writeValueAsString(params); jsonBody = objectMapper.writeValueAsString(params);
log.info("IFS请求接口名称:{},请求参数: {}","ReceiveInventoryPart", jsonBody); log.info("IFS请求接口名称:{},请求参数: {}","ReceiveInventoryPart", jsonBody);
String ifsResponse = HttpUtils.doPost(ifsUrl + "ReceiveInventoryPart", jsonBody, null); String ifsResponse = HttpUtils.doPost(ifsUrl + "ReceiveInventoryPart", jsonBody, null);
if (!"IFSUpdated".equals(ifsResponse) && !"\"IFSUpdated\"".equals(ifsResponse)){
ErrorLogUtils.logInterface(otherTransactionIfsDto.getIfsSiteID(),
"IFS接口",
"其他入库",
"IFS",
"ReceiveInventoryPart",
otherTransactionIfsDto.getIfsPartNo(),
jsonBody,
ifsResponse,ifsResponse);
}
return ifsResponse; return ifsResponse;
} catch (Exception e) { } catch (Exception e) {
ErrorLogUtils.logInterface(otherTransactionIfsDto.getIfsSiteID(), ErrorLogUtils.logInterface(otherTransactionIfsDto.getIfsSiteID(),
@ -593,7 +602,16 @@ public class IfsApiIssueAndReturnServiceImpl implements IfsApiIssueAndReturnServ
jsonBody = objectMapper.writeValueAsString(params); jsonBody = objectMapper.writeValueAsString(params);
log.info("IFS请求接口名称:{},请求参数: {}","IssueInventoryPart", jsonBody); log.info("IFS请求接口名称:{},请求参数: {}","IssueInventoryPart", jsonBody);
String ifsResponse = HttpUtils.doPost(ifsUrl + "IssueInventoryPart", jsonBody, null); String ifsResponse = HttpUtils.doPost(ifsUrl + "IssueInventoryPart", jsonBody, null);
if (!"IFSUpdated".equals(ifsResponse) && !"\"IFSUpdated\"".equals(ifsResponse)){
ErrorLogUtils.logInterface(otherTransactionIfsDto.getIfsSiteID(),
"IFS接口",
"其他出库",
"IFS",
"IssueInventoryPart",
otherTransactionIfsDto.getIfsPartNo(),
jsonBody,
ifsResponse,ifsResponse);
}
return ifsResponse; return ifsResponse;
} catch (Exception e) { } catch (Exception e) {
ErrorLogUtils.logInterface(otherTransactionIfsDto.getIfsSiteID(), ErrorLogUtils.logInterface(otherTransactionIfsDto.getIfsSiteID(),

Loading…
Cancel
Save