feat(integration): 新增物料消耗数据事务保存功能
This commit is contained in:
parent
3045bbaafe
commit
252f1494cd
@ -227,7 +227,9 @@ public class OutSapReportController {
|
||||
if ("E".equals(invokeResponse.getResult())) {
|
||||
return R.failed("SAP错误:" + invokeResponse.getMessageContent());
|
||||
} else {
|
||||
String site = TenantContextHolder.getTenantId();
|
||||
String s = outMaterialSapService.batchUpdateMaterialInventory(outShopOrderDto.getList());
|
||||
outMaterialSapService.saveMaterialConsumptionData(outShopOrderDto.getList(),site);
|
||||
if ("E".equals(invokeResponse.getResult())) {
|
||||
return R.failed("SAP错误:" + invokeResponse.getMessageContent());
|
||||
}
|
||||
|
||||
@ -644,7 +644,6 @@ public class OutMaterialSapServiceImpl implements OutMaterialSapService {
|
||||
|
||||
for (OutSapMaterialLog outSapMaterialLog : outSapMaterialLogs) {
|
||||
ZLotMaterialConsumptionTransaction zLotMaterialConsumptionTransaction = new ZLotMaterialConsumptionTransaction();
|
||||
zLotMaterialConsumptionTransaction.setSid(outSapMaterialLog.getSid());
|
||||
zLotMaterialConsumptionTransaction.setUserWorkShift(outSapMaterialLog.getUserWorkShift());
|
||||
zLotMaterialConsumptionTransaction.setSite(site);
|
||||
zLotMaterialConsumptionTransaction.setFabNo(outSapMaterialLog.getFabNo());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user