feat(integration): 新增物料消耗数据事务保存功能

This commit is contained in:
tangyu 2025-04-11 14:00:25 +08:00
parent 3045bbaafe
commit 252f1494cd
2 changed files with 2 additions and 1 deletions

View File

@ -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());
}

View File

@ -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());