| | |
| | | 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<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(standard != null){ |
| | | mapResult.put("regulations",standard.getDisUda1()); |
| | | } |
| | | mapResult.put("list1",list1); |
| | | mapResult.put("list2",list2); |
| | |
| | | inspectionResultVo.setWeekOfMonth((Integer)r.get("weekOfMonth")); |
| | | inspectionResultVo.setInsResult((String)r.get("insResult")); |
| | | listS.add(inspectionResultVo); |
| | | |
| | | hashMap.put("dataList",listS);//---- |
| | | maps.add(hashMap); |
| | | } |
| | | }else{ |
| | |
| | | inspectionResultVo.setInspectionUserName((String)map.get("inspectionUserName")); |
| | | inspectionResultVo.setWeekOfMonth((Integer)map.get("weekOfMonth")); |
| | | listIn.add(inspectionResultVo); |
| | | hashMap.put("dataList",listIn);//--- |
| | | hashMap.put("dataList",listIn); |
| | | } |
| | | }else{ |
| | |
| | | inspectionResultVo.setWeekOfMonth((Integer)map.get("weekOfMonth")); |
| | | listRe.add(inspectionResultVo); |
| | | hashMap.put("dataList",listRe); |
| | | |
| | | maps3.add(hashMap);//--- |
| | | } |
| | | }else{ |
| | | HashMap<String, Object> hashMap = new HashMap<>(); |