|
|
|
@ -33,6 +33,8 @@ public class InspectionWorkServiceImpl implements IInspectionWorkService {
|
|
|
|
|
private EquOrderStandardMapper equOrderStandardMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private EquPlanMapper equPlanMapper;
|
|
|
|
|
@Autowired
|
|
|
|
|
private EquOrderEquSpareMapper equOrderEquSpareMapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询巡检记录
|
|
|
|
@ -44,6 +46,7 @@ public class InspectionWorkServiceImpl implements IInspectionWorkService {
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public AjaxResult selectEquOrderByOrderId(String orderId) {
|
|
|
|
|
InspectionWorkVO workVO = new InspectionWorkVO();
|
|
|
|
|
// 查询工单信息
|
|
|
|
|
EquOrder order = equOrderMapper.selectEquOrderByOrderId(orderId);
|
|
|
|
|
// 设置计划名称
|
|
|
|
|
EquPlan equPlan = equPlanMapper.selectEquPlanByPlanCode(order.getPlanCode());
|
|
|
|
@ -51,11 +54,15 @@ public class InspectionWorkServiceImpl implements IInspectionWorkService {
|
|
|
|
|
order.setPlanName(equPlan.getPlanName());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 查询备件信息
|
|
|
|
|
List<EquOrderEquSpare> spareList = equOrderEquSpareMapper.selectEquOrderEquSpareByOrderCode(order.getOrderCode());
|
|
|
|
|
|
|
|
|
|
// 替换循环周期
|
|
|
|
|
order.setPlanLoopType(equOrderMapper.changeLoopType(order.getPlanLoopType()));
|
|
|
|
|
|
|
|
|
|
Equipment equipment = equipmentMapper.selectEquipmentByEquipmentCode(order.getEquipmentCode());
|
|
|
|
|
|
|
|
|
|
// 查询检查项、标准
|
|
|
|
|
List<EquOrderDetail> detailList = equOrderDetailMapper.selectEquOrderDetailByOrderCode(order.getOrderCode());
|
|
|
|
|
for (EquOrderDetail detail : detailList) {
|
|
|
|
|
List<EquOrderStandard> standardList = equOrderStandardMapper.selectEquOrderStandardByParentCode(detail.getCode());
|
|
|
|
@ -76,6 +83,8 @@ public class InspectionWorkServiceImpl implements IInspectionWorkService {
|
|
|
|
|
}
|
|
|
|
|
detail.setStandardList(standardList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
workVO.setSpareList(spareList);
|
|
|
|
|
workVO.setOrder(order);
|
|
|
|
|
workVO.setEqu(equipment);
|
|
|
|
|
workVO.setDetailList(detailList);
|
|
|
|
|