|
@@ -354,6 +354,13 @@ public class ApsReportOutputServiceImpl extends ServiceImpl<ApsReportOutputDao,
|
|
apsReportOutputDo.setTenantid(tenantId);
|
|
apsReportOutputDo.setTenantid(tenantId);
|
|
}
|
|
}
|
|
this.saveBatch(resList);
|
|
this.saveBatch(resList);
|
|
|
|
+ //更新主表中的输出物料
|
|
|
|
+ List<String> outPutMaterialList = resList.stream().map(ApsReportOutputDo::getOutputmaterial).distinct().collect(Collectors.toList());
|
|
|
|
+ String outPutMaterials = String.join(",", outPutMaterialList);
|
|
|
|
+ ApsReportRecordsDo apsReportRecordsDo = new ApsReportRecordsDo();
|
|
|
|
+ apsReportRecordsDo.setId(req.getMainId());
|
|
|
|
+ apsReportRecordsDo.setReportoutmaterrequest(outPutMaterials);
|
|
|
|
+ apsReportRecordsService.updateById(apsReportRecordsDo);
|
|
return R.ok();
|
|
return R.ok();
|
|
}
|
|
}
|
|
|
|
|