退料审核代码提交
This commit is contained in:
parent
84b7346386
commit
8ca8b57e9d
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue