feat(cost): 添加生产指标计算结果批量保存功能

- 在CostProdMetricResultBo中新增resultIds和prodMetricResultList字段
- 添加/batch接口支持批量保存生产指标计算结果
- 实现batchSaveWithDelete方法支持先删除再插入操作
- 使用事务注解确保批量操作的数据一致性
- 集成CollUtil工具类处理集合操作
- 完善相关的Service接口定义
This commit is contained in:
2026-06-17 10:11:10 +08:00
parent c547456108
commit 7b7f4b902e
4 changed files with 46 additions and 0 deletions

View File

@@ -46,4 +46,9 @@ public interface ICostProdMetricResultService {
* 校验并批量删除生产指标计算结果信息
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
/**
* 批量保存生产指标计算结果(先删除再插入)
*/
Boolean batchSaveWithDelete(CostProdMetricResultBo bo);
}