退料审核代码提交
This commit is contained in:
parent
84b7346386
commit
8ca8b57e9d
|
|
@ -547,16 +547,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
|||
// 去查询领料任务详情表
|
||||
List<LeaseApplyDetails> leaseApplyDetails = tmTaskMapper.getLeaseApplyDetailsCq(leaseApplyInfo);
|
||||
if (leaseApplyDetails != null && !leaseApplyDetails.isEmpty()) {
|
||||
for (LeaseApplyDetails leaseApplyDetail : 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);
|
||||
}
|
||||
// tmTaskMapper.getMaTypeDetails(leaseApplyDetails);
|
||||
listLeaseDetails.addAll(leaseApplyDetails);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue