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