| 
					
				 | 
			
			
				@ -104,6 +104,8 @@ public class MonitorPlatformService  { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return envelop; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            List<LocationDataVO> euipmentList = new ArrayList<>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            int totalEqCount=0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            int totalCount=0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //查找全部 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(diseaseCondition!=null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject json = new JSONObject(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -113,40 +115,43 @@ public class MonitorPlatformService  { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                json.put("value",diseaseCondition); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonArray.add(json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //小屋总数 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(deviceType.contains("5")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               totalEqCount = iotEqtDetailService.getEquipmentCount(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String[] categoryCodes= deviceType.split(","); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(categoryCodes.length==1&&"5".equals(deviceType)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                euipmentList = iotEqtDetailService.getEquipmentLocation(page,size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                envelop.getDetailModelList().addAll(euipmentList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                envelop.setTotalCount(iotEqtDetailService.getEquipmentCount()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            else{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(deviceType.contains("5")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    euipmentList = iotEqtDetailService.getEquipmentLocation(page,size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    envelop.getDetailModelList().addAll(euipmentList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                if(!(deviceType.contains("1")&&deviceType.contains("2"))){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    for (String categoryCode:categoryCodes){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        if(!"5".equals(categoryCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            JSONObject json = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            json.put("andOr","and"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            json.put("field","categoryCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            json.put("condition","="); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            json.put("value",Integer.parseInt(categoryCode)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                            jsonArray.add(json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                for (String categoryCode:categoryCodes){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if(!"5".equals(categoryCode)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         JSONObject json = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         json.put("andOr","and"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         json.put("field","categoryCode"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         json.put("condition","="); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         json.put("value",Integer.parseInt(categoryCode)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         jsonArray.add(json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         jsonObject.put("filter",jsonArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         jsonObject.put("page",page); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         jsonObject.put("size",size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         List<LocationDataVO> locationDataVOList = iotPatientDeviceService.findDeviceLocationsByIdCard(jsonObject.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         List<LocationDataVO> list2 = iotPatientDeviceService.addNameAndCodeToList(locationDataVOList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         //figureLabelSerachService.getFigureLabelByList(locationDataVOList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         envelop.getDetailModelList().addAll(list2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         totalCount += iotPatientDeviceService.getESCount(jsonObject.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         jsonArray.remove(json); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                JSONObject jsonObject = new JSONObject(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonObject.put("filter",jsonArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonObject.put("page",page); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                jsonObject.put("size",size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                List<LocationDataVO> locationDataVOList = iotPatientDeviceService.findDeviceLocationsByIdCard(jsonObject.toString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                List<LocationDataVO> list2 = iotPatientDeviceService.addNameAndCodeToList(locationDataVOList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                //figureLabelSerachService.getFigureLabelByList(locationDataVOList); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                envelop.getDetailModelList().addAll(list2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                envelop.setTotalCount(iotPatientDeviceService.getESCount(jsonObject.toString())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            envelop.setTotalCount(totalCount>totalEqCount?totalCount:totalEqCount); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            return envelop; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 |