| | |
| | | //import org.jeecg.modules.system.entity.SysUploadRela; |
| | | //import org.jeecg.modules.system.service.IUploadRelaService; |
| | | //import org.jeecg.modules.system.service.IUploadService; |
| | | import org.jeecg.modules.eam.vo.InspectionResultVo; |
| | | import org.jeecg.modules.eam.vo.SysFileNameVo; |
| | | import org.jeecgframework.poi.excel.ExcelImportUtil; |
| | | import org.jeecgframework.poi.excel.def.NormalExcelConstants; |
| | |
| | | String detectionStandard = (String)map.get("detectionStandard"); |
| | | List<Map<String, Object>> record = inspectionOrderService.findDayInspectionStandardProject(equipmentNum,name, detectionStandard,dataTime); |
| | | |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | List<InspectionResultVo> list = new ArrayList<>(); |
| | | |
| | | for (Map<String, Object> r : record) { |
| | | if(maps.size()>0){ |
| | |
| | | for (Map<String, Object> map1 : maps) { |
| | | if(map1.containsValue(r.get("name")) && map1.containsValue(r.get("detectionStandard"))){ |
| | | // map1.put(r.get("dayTime").toString(),r.get("insResult")); |
| | | HashMap<String, Object> hashMap1 = new HashMap<>(); |
| | | hashMap1.put(r.get("dayTime").toString(),r.get("insResult")); |
| | | list.add(hashMap1); |
| | | InspectionResultVo inspectionResultVo = new InspectionResultVo(); |
| | | inspectionResultVo.setDayTime((String)r.get("dayTime")); |
| | | inspectionResultVo.setInsResult((String)r.get("detectionStandard")); |
| | | list.add(inspectionResultVo); |
| | | flag = true; |
| | | } |
| | | } |
| | |
| | | hashMap.put("detectionStandard",r.get("detectionStandard")); |
| | | |
| | | // hashMap.put(r.get("dayTime").toString(),r.get("insResult")); |
| | | HashMap<String, Object> hashMap1 = new HashMap<>(); |
| | | hashMap1.put(r.get("dayTime").toString(),r.get("insResult")); |
| | | list.add(hashMap1); |
| | | InspectionResultVo inspectionResultVo = new InspectionResultVo(); |
| | | inspectionResultVo.setDayTime((String)r.get("dayTime")); |
| | | inspectionResultVo.setInsResult((String)r.get("detectionStandard")); |
| | | list.add(inspectionResultVo); |
| | | maps.add(hashMap); |
| | | } |
| | | }else{ |
| | |
| | | hashMap.put("detectionStandard",r.get("detectionStandard")); |
| | | // hashMap.put(r.get("dayTime").toString(),r.get("insResult")); |
| | | |
| | | HashMap<String, Object> hashMap1 = new HashMap<>(); |
| | | hashMap1.put(r.get("dayTime").toString(),r.get("insResult")); |
| | | list.add(hashMap1); |
| | | InspectionResultVo inspectionResultVo = new InspectionResultVo(); |
| | | inspectionResultVo.setDayTime((String)r.get("dayTime")); |
| | | inspectionResultVo.setInsResult((String)r.get("detectionStandard")); |
| | | list.add(inspectionResultVo); |
| | | hashMap.put("dataList",list); |
| | | |
| | | maps.add(hashMap); |