| | |
| | | @Lazy |
| | | private IDailyInspectionStandardService dailyInspectionStandardService; |
| | | |
| | | @Autowired |
| | | @Lazy |
| | | private IAreaService areaService; |
| | | |
| | | // @Autowired |
| | | // private IUploadRelaService uploadRelaService; |
| | | // |
| | |
| | | String equipmentNum = (String)params.get("num"); |
| | | String dataTime = (String)params.get("dataTime"); |
| | | Equipment equipment = equipmentService.getOne(new LambdaQueryWrapper<Equipment>().eq(Equipment::getNum, equipmentNum).eq(Equipment::getDelFlag, 0)); |
| | | if(equipment == null){ |
| | | return Result.error("设备统一编号不存在!"); |
| | | } |
| | | String workCenterId = equipment.getWorkCenterId(); |
| | | Area area = areaService.getById(workCenterId); |
| | | |
| | | |
| | | List<Map<String, Object>> list1 = this.getInspectionStandars(equipmentNum,"day",dataTime); |
| | | List<Map<String, Object>> list2 = this.getUserQianzi(equipmentNum,"day"); |
| | | List<Map<String, Object>> list3 = this.getCheckUserQianzi(equipmentNum,"day"); |
| | | List<Map<String, Object>> list2 = this.getUserQianzi(equipmentNum,"day",dataTime); |
| | | List<Map<String, Object>> list3 = this.getCheckUserQianzi(equipmentNum,"day",dataTime); |
| | | List<Map<String, Object>> list4 = this.getInspectionStandars(equipmentNum, "week",dataTime); |
| | | List<Map<String, Object>> list5 = this.getUserQianzi(equipmentNum,"week"); |
| | | List<Map<String, Object>> list6 = this.getCheckUserQianzi(equipmentNum,"week"); |
| | | List<Map<String, Object>> list5 = this.getUserQianzi(equipmentNum,"week",dataTime); |
| | | List<Map<String, Object>> list6 = this.getCheckUserQianzi(equipmentNum,"week",dataTime); |
| | | |
| | | mapResult.put("equipentNum",equipment.getNum()); |
| | | mapResult.put("equipentName",equipment.getName()); |
| | | mapResult.put("equipmentModel",equipment.getModel()); |
| | | if(area != null){ |
| | | mapResult.put("workCenterName",area.getName()); |
| | | } |
| | | mapResult.put("list1",list1); |
| | | mapResult.put("list2",list2); |
| | | mapResult.put("list3",list3); |
| | |
| | | String name = (String)map.get("name"); |
| | | String detectionStandard = (String)map.get("detectionStandard"); |
| | | List<Map<String, Object>> record = inspectionOrderService.findDayInspectionStandardProject(equipmentNum,name, detectionStandard,dataTime); |
| | | |
| | | List<InspectionResultVo> listS = new ArrayList<>(); |
| | | |
| | | for (Map<String, Object> r : record) { |
| | |
| | | return maps; |
| | | } |
| | | |
| | | List<Map<String, Object>> getUserQianzi(String num,String cycleUnit){ |
| | | List<Map<String, Object>> getUserQianzi(String equipmentNum,String cycleUnit,String dataTime){ |
| | | List<Map<String, Object>> maps2 = new ArrayList<>(); |
| | | List<InspectionResultVo> listIn = new ArrayList<>(); |
| | | List<Map<String, Object>> userQianZi = inspectionOrderService.getUserQianZi(num,cycleUnit); |
| | | List<Map<String, Object>> userQianZi = inspectionOrderService.getUserQianZi(equipmentNum,cycleUnit,dataTime); |
| | | for (Map<String, Object> map : userQianZi) { |
| | | if(maps2.size()>0){ |
| | | Boolean flag = false; |
| | |
| | | return maps2; |
| | | } |
| | | |
| | | List<Map<String, Object>> getCheckUserQianzi(String num,String cycleUnit){ |
| | | List<Map<String, Object>> getCheckUserQianzi(String num,String cycleUnit,String dataTime){ |
| | | List<Map<String, Object>> maps3 = new ArrayList<>(); |
| | | List<InspectionResultVo> listRe = new ArrayList<>(); |
| | | List<Map<String, Object>> checkUserQianZi = inspectionOrderService.getUserQianZi(num,cycleUnit); |
| | | List<Map<String, Object>> checkUserQianZi = inspectionOrderService.getUserQianZi(num,cycleUnit,dataTime); |
| | | for (Map<String, Object> map : checkUserQianZi) { |
| | | if(maps3.size()>0){ |
| | | Boolean flag = false; |