测试环境注释掉采购登记冲销SAP接口做测试
This commit is contained in:
parent
58996c5f73
commit
6aa601bbcb
@ -120,8 +120,10 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService {
|
||||
newDocumentList.add(documentDetail);
|
||||
}
|
||||
|
||||
remotePoService.saveDocumentData(newDocumentList).getData();
|
||||
|
||||
// 发送给ERP执行FSMM008-2接口
|
||||
LocalDateTime nowLocalDateTime = LocalDateTime.now();
|
||||
/*LocalDateTime nowLocalDateTime = LocalDateTime.now();
|
||||
String nowTime = nowLocalDateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
||||
invokeRequest.setTransSid(SapUtil.generateReqId());
|
||||
invokeRequest.setTransTime(nowTime); // 设定过账日期
|
||||
@ -149,7 +151,7 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService {
|
||||
documentDetail.setMaterialDocument(invokeResponse.getMessageContent());
|
||||
}
|
||||
remotePoService.saveDocumentData(newDocumentList).getData();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
} catch (Exception e) {
|
||||
invokeResponse.setResult("E");
|
||||
@ -318,11 +320,11 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService {
|
||||
}
|
||||
remotePoService.cancelDocumentNo(document);
|
||||
// 传送SAP
|
||||
InvokeResponse invokeResponse = assembleCancelBody(site, materialDocument, document.getPostingDate());
|
||||
/*InvokeResponse invokeResponse = assembleCancelBody(site, materialDocument, document.getPostingDate());
|
||||
// 处理MES中自己的逻辑
|
||||
if (!"S".equals(invokeResponse.getResult())) {
|
||||
throw BusinessException.build("SAP错误:" + invokeResponse.getMessageContent());
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
private InvokeResponse assembleCancelBody(String site, String mblnr, String postDate) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user