| | |
| | | String id = (String)record.get("id"); |
| | | // String equipmentId = (String)record.get("equipmentId"); |
| | | // String status = (String)record.get("status"); |
| | | // String inspectionStandardId = (String)record.get("inspectionStandardId"); |
| | | // List<InspectionCycleVo> inspectionCycles = inspectionOrderService.getInspectionCycleByEqId(inspectionStandardId); |
| | | // record.put("inspectionCycles",inspectionCycles); |
| | | String inspectionStandardId = (String)record.get("inspectionStandardId"); |
| | | List<InspectionCycleVo> inspectionCycles = inspectionOrderService.getInspectionCycleByEqId(inspectionStandardId); |
| | | record.put("inspectionCycles",inspectionCycles); |
| | | |
| | | List<Map<String, Object>> inspectionOrderDetails = inspectionOrderService.getInspectionOrderDetailByOrderId(id); |
| | | record.put("inspectionOrderDetails",inspectionOrderDetails); |
| | |
| | | String workCenterId = equipment.getWorkCenterId(); |
| | | Area area = areaService.getById(workCenterId); |
| | | |
| | | // DailyInspectionStandard standard = dailyInspectionStandardService.getOne(new LambdaQueryWrapper<DailyInspectionStandard>() |
| | | // .eq(DailyInspectionStandard::getEquipmentId, equipment.getId()) |
| | | // .eq(DailyInspectionStandard::getDelFlag, 0) |
| | | // .eq(DailyInspectionStandard::getVersionStatus, "2")); |
| | | List<DailyInspectionStandard> list = dailyInspectionStandardService.lambdaQuery().eq(DailyInspectionStandard::getEquipmentId, equipment.getId()) |
| | | .eq(DailyInspectionStandard::getDelFlag, 0) |
| | | .eq(DailyInspectionStandard::getVersionStatus, "2").list(); |
| | | |
| | | |
| | | List<Map<String, Object>> list1 = this.getInspectionStandars(equipmentNum,"day",dataTime); |
| | | List<Map<String, Object>> list2 = this.getUserQianzi(equipmentNum,"day",dataTime); |
| | |
| | | mapResult.put("equipentNum",equipment.getNum()); |
| | | mapResult.put("equipentName",equipment.getName()); |
| | | mapResult.put("equipmentModel",equipment.getModel()); |
| | | mapResult.put("equipmentModel",equipment.getModel()); |
| | | if(area != null){ |
| | | mapResult.put("workCenterName",area.getName()); |
| | | } |
| | | if(list.size() > 0){ |
| | | mapResult.put("regulations",list.get(0).getDisUda1()); |
| | | }else{ |
| | | mapResult.put("regulations","-"); |
| | | } |
| | | mapResult.put("list1",list1); |
| | | mapResult.put("list2",list2); |
| | | mapResult.put("list3",list3); |