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)) {
for (TypeTreeNode node : listL5) {
// 根据协议id以及typeId查询在用量
if (bean.getAgreementId() != null) {
// 根据工程和班组id查询协议id
BmAgreementInfo info = materialLeaseInfoMapper.getAgreeId(bean);
if (info != null) {
Type maType = new Type();
maType.setAgreementId(info.getAgreementId());
maType.setTypeId(node.getTypeId());