This commit is contained in:
parent
2441cb34e3
commit
f87b1bc314
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue