退料审核代码提交

This commit is contained in:
liang.chao 2024-04-17 11:11:55 +08:00
parent 84b7346386
commit 8ca8b57e9d
1 changed files with 1 additions and 10 deletions

View File

@ -547,16 +547,7 @@ public class TmTaskServiceImpl implements TmTaskService {
// 去查询领料任务详情表 // 去查询领料任务详情表
List<LeaseApplyDetails> leaseApplyDetails = tmTaskMapper.getLeaseApplyDetailsCq(leaseApplyInfo); List<LeaseApplyDetails> leaseApplyDetails = tmTaskMapper.getLeaseApplyDetailsCq(leaseApplyInfo);
if (leaseApplyDetails != null && !leaseApplyDetails.isEmpty()) { if (leaseApplyDetails != null && !leaseApplyDetails.isEmpty()) {
for (LeaseApplyDetails leaseApplyDetail : leaseApplyDetails) { // tmTaskMapper.getMaTypeDetails(leaseApplyDetails);
List<MachinePart> machineParts = new ArrayList<>();
List<TmTask> typeIds = tmTaskMapper.getMaTypeDetails(leaseApplyDetail);
for (TmTask typeId : typeIds) {
MachinePart machinePart = tmTaskMapper.getMachineParts(typeId);
machinePart.setPartNum(typeId.getPartNum());
machineParts.add(machinePart);
}
leaseApplyDetail.setMaTypeDetails(machineParts);
}
listLeaseDetails.addAll(leaseApplyDetails); listLeaseDetails.addAll(leaseApplyDetails);
} }
} }