结算工程限制

This commit is contained in:
hongchao 2025-10-14 22:52:50 +08:00
parent 4a3d1617ea
commit 25df39b6e0
1 changed files with 9 additions and 0 deletions

View File

@ -133,6 +133,15 @@ public class ClzSltAgreementInfoServiceImpl implements ClzSltAgreementInfoServic
if (proId == null || !unsettledProjectIds.contains(proId)) { if (proId == null || !unsettledProjectIds.contains(proId)) {
iterator.remove(); iterator.remove();
continue;
}
// 根据工程去机具协议表查询关联协议数据
List<MaterialRetainedEquipmentInfo> agreementIdList = mapper.getAgreementId(info.getProId());
// 根据工程去材料站协议表查询关联协议数据
List<MaterialRetainedEquipmentInfo> storageAgreementIdList = mapper.getStorageAgreementId(info.getProId());
// 如果获取的协议数据为空则移除该行数据
if (com.alibaba.nacos.common.utils.CollectionUtils.isEmpty(agreementIdList) && com.alibaba.nacos.common.utils.CollectionUtils.isEmpty(storageAgreementIdList)) {
iterator.remove();
} }
} }
} }