呼叫SAP返回失败报 “数量和/或“交货结束”指示符或最终发货指示符丢失” 错误,暂时注释掉call SAP
This commit is contained in:
parent
2bf2982076
commit
906fadefbc
@ -52,7 +52,7 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService {
|
||||
private ZmmMesChargCreate1Service zmmMesChargCreate1Service;
|
||||
|
||||
@Override
|
||||
@GlobalTransactional
|
||||
@Transactional
|
||||
public InvokeResponse createDocumentAndCallErp(List<DocumentDetailed> zwDocumentDetailList) {
|
||||
InvokeResponse invokeResponse = new InvokeResponse();
|
||||
InvokeRequest invokeRequest = new InvokeRequest();
|
||||
@ -84,7 +84,7 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService {
|
||||
List<QmsQcPlanTargetDTO> qmsQcPlanTargetDTOS = remoteQmsQcPlanTargetService.getByTargetBo(itemObj.getHandle()).getData();
|
||||
documentDetail.setIqcStatus(qmsQcPlanTargetDTOS.isEmpty() ? "1001" : "1004");
|
||||
documentDetail.setIqcResults(qmsQcPlanTargetDTOS.isEmpty() ? "MJ" : "BJ");
|
||||
|
||||
documentDetail.setItemBo(itemObj.getHandle());
|
||||
documentDetail.setTargetWarehouse(documentDetail.getStoragLocation());
|
||||
String itemNo = documentDetail.getMatnr();
|
||||
// 使用迭代器进行遍历和移除
|
||||
@ -126,6 +126,10 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService {
|
||||
invokeResponse.setResult("E");
|
||||
invokeResponse.setMessageContent(e.getMessage());
|
||||
}
|
||||
// 如果处理失败,抛出异常,让其回滚
|
||||
if ("E".equals(invokeResponse.getResult())) {
|
||||
throw BusinessException.build(invokeResponse.getMessageContent());
|
||||
}
|
||||
return invokeResponse;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user