|
|
@ -64,6 +64,8 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
|
|
|
|
private EquSpareApplyMapper equSpareApplyMapper;
|
|
|
|
private EquSpareApplyMapper equSpareApplyMapper;
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private EquFileMapper equFileMapper;
|
|
|
|
private EquFileMapper equFileMapper;
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private EquOrderEquSpareMapper equOrderEquSpareMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -118,14 +120,12 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
|
|
|
|
|
|
|
|
|
|
|
|
order.setWorkCenterName(equOrderMapper.selectCenterNameByCenterCode(order.getPlanWorkshop()));
|
|
|
|
order.setWorkCenterName(equOrderMapper.selectCenterNameByCenterCode(order.getPlanWorkshop()));
|
|
|
|
|
|
|
|
|
|
|
|
EquOrderEqu equ = equOrderEquMapper.selectEquOrderEquListByParentCode(order.getOrderId());
|
|
|
|
List<EquOrderDetail> detailList = equOrderDetailMapper.selectEquOrderDetailByOrderCode(order.getOrderCode());
|
|
|
|
|
|
|
|
|
|
|
|
List<EquOrderDetail> detailList = equOrderDetailMapper.selectEquOrderDetailByParentCode(equ.getId());
|
|
|
|
|
|
|
|
for (EquOrderDetail detail : detailList) {
|
|
|
|
for (EquOrderDetail detail : detailList) {
|
|
|
|
List<EquOrderStandard> standardList = equOrderStandardMapper.selectEquOrderStandardByParentCode(detail.getId());
|
|
|
|
List<EquOrderStandard> standardList = equOrderStandardMapper.selectEquOrderStandardByParentCode(detail.getId());
|
|
|
|
detail.setStandardList(standardList);
|
|
|
|
detail.setStandardList(standardList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
equ.setDetailList(detailList);
|
|
|
|
order.setDetailList(detailList);
|
|
|
|
|
|
|
|
|
|
|
|
// 人员信息
|
|
|
|
// 人员信息
|
|
|
|
List<String> users = equOrderPersonMapper.selectEquOrderPersonByOrderCode(order.getOrderCode());
|
|
|
|
List<String> users = equOrderPersonMapper.selectEquOrderPersonByOrderCode(order.getOrderCode());
|
|
|
@ -136,9 +136,14 @@ public class DevicePDAServiceImpl implements IDevicePDAService {
|
|
|
|
personList.add(personMapper.selectSysUserByUserId(Long.valueOf(id)));
|
|
|
|
personList.add(personMapper.selectSysUserByUserId(Long.valueOf(id)));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 备件
|
|
|
|
|
|
|
|
List<EquOrderEquSpare> spareList = equOrderEquSpareMapper.selectEquOrderEquSpareByOrderCode(order.getOrderCode());
|
|
|
|
|
|
|
|
if (spareList != null) {
|
|
|
|
|
|
|
|
order.setSpareList(spareList);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
order.setPersonList(personList);
|
|
|
|
order.setPersonList(personList);
|
|
|
|
|
|
|
|
|
|
|
|
order.setEqu(equ);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return success(order);
|
|
|
|
return success(order);
|
|
|
|
}
|
|
|
|
}
|
|
|
|