demand: TMS系统 - 运输管理 - 货物组批次编辑-批量移除后批量添加无法保存修复

committer: heyu
This commit is contained in:
aike 2025-08-11 16:31:30 +08:00
parent 9ad4f98bba
commit a4d4d82377

View File

@ -608,6 +608,11 @@ public class EmisTmsSiteBatchServiceImpl extends EmisBaseService implements IEmi
// 对剩余数据调用checkSiteBatch
if (CollectionUtil.isNotEmpty(remainingList)) {
for (EmisTmsSiteBatchDtl itemDtl : remainingList) {
// 从历史数据中获取对应的id,用于更新操作
EmisTmsSiteBatchDtl historyDtl = historyBatchDtlMap.get(itemDtl.getBillCode());
if (historyDtl != null) {
itemDtl.setId(historyDtl.getId());
}
checkSiteBatch(emisTmsSiteBatch, itemDtl);
emisTmsSiteBatchDtlMapper.updateEmisTmsSiteBatchDtl(itemDtl);
}