This commit is contained in:
mashuai 2025-07-07 15:04:21 +08:00
parent 5e9f28a5d5
commit 478d5beac7
1 changed files with 3 additions and 4 deletions

View File

@ -969,10 +969,9 @@ public class MaterialLeaseInfoServiceImpl implements MaterialLeaseInfoService {
} }
if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(listL5)) { if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(listL5)) {
for (TypeTreeNode node : listL5) { for (TypeTreeNode node : listL5) {
// 根据协议id以及typeId查询在用量 // 根据工程和班组id查询协议id
if (bean.getAgreementId() != null) { BmAgreementInfo info = materialLeaseInfoMapper.getAgreeId(bean);
// 根据工程和班组id查询协议id if (info != null) {
BmAgreementInfo info = materialLeaseInfoMapper.getAgreeId(bean);
Type maType = new Type(); Type maType = new Type();
maType.setAgreementId(info.getAgreementId()); maType.setAgreementId(info.getAgreementId());
maType.setTypeId(node.getTypeId()); maType.setTypeId(node.getTypeId());