This commit is contained in:
mashuai 2026-01-13 09:54:13 +08:00
parent 2441cb34e3
commit f87b1bc314
1 changed files with 9 additions and 2 deletions

View File

@ -1634,8 +1634,15 @@ public class TmTaskServiceImpl implements TmTaskService {
applyInfo.setLotId(tmTask.getProId().toString()); applyInfo.setLotId(tmTask.getProId().toString());
applyInfo.setTypeName(leaseApply.getTypeName()); applyInfo.setTypeName(leaseApply.getTypeName());
applyInfo.setTypeCode(leaseApply.getTypeModelName()); applyInfo.setTypeCode(leaseApply.getTypeModelName());
BackApplyInfo info = backReceiveMapper.getProAndTypeNum(applyInfo); List<BackApplyInfo> infoList = backReceiveMapper.getProAndTypeNum(applyInfo);
leaseApply.setUsNum(info != null ? info.getUsNum() : 0.0); double usNum = 0.0;
if (CollectionUtils.isNotEmpty(infoList)) {
for (BackApplyInfo backApplyInfo : infoList) {
// 获取在用数量进行累加
usNum += backApplyInfo.getUsNum() == null ? 0.0 : backApplyInfo.getUsNum();
}
}
leaseApply.setUsNum(usNum);
} }
listLeaseDetails.addAll(leaseApplyDetails); listLeaseDetails.addAll(leaseApplyDetails);
} }