| 
															
																@ -104,6 +104,8 @@ public class MonitorPlatformService  { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            return envelop; 
															 | 
															
															 | 
															
																            return envelop; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        }else { 
															 | 
															
															 | 
															
																        }else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            List<LocationDataVO> euipmentList = new ArrayList<>(); 
															 | 
															
															 | 
															
																            List<LocationDataVO> euipmentList = new ArrayList<>(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            int totalEqCount=0; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            int totalCount=0; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            //查找全部 
															 | 
															
															 | 
															
																            //查找全部 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            if(diseaseCondition!=null){ 
															 | 
															
															 | 
															
																            if(diseaseCondition!=null){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                JSONObject json = new JSONObject(); 
															 | 
															
															 | 
															
																                JSONObject json = new JSONObject(); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -113,40 +115,43 @@ public class MonitorPlatformService  { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                json.put("value",diseaseCondition); 
															 | 
															
															 | 
															
																                json.put("value",diseaseCondition); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                jsonArray.add(json); 
															 | 
															
															 | 
															
																                jsonArray.add(json); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            //小屋总数 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            if(deviceType.contains("5")){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																               totalEqCount = iotEqtDetailService.getEquipmentCount(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            String[] categoryCodes= deviceType.split(","); 
															 | 
															
															 | 
															
																            String[] categoryCodes= deviceType.split(","); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            if(categoryCodes.length==1&&"5".equals(deviceType)){ 
															 | 
															
															 | 
															
																            if(categoryCodes.length==1&&"5".equals(deviceType)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                euipmentList = iotEqtDetailService.getEquipmentLocation(page,size); 
															 | 
															
															 | 
															
																                euipmentList = iotEqtDetailService.getEquipmentLocation(page,size); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                envelop.getDetailModelList().addAll(euipmentList); 
															 | 
															
															 | 
															
																                envelop.getDetailModelList().addAll(euipmentList); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                envelop.setTotalCount(iotEqtDetailService.getEquipmentCount()); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            else{ 
															 | 
															
															 | 
															
																            else{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                if(deviceType.contains("5")){ 
															 | 
															
															 | 
															
																                if(deviceType.contains("5")){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    euipmentList = iotEqtDetailService.getEquipmentLocation(page,size); 
															 | 
															
															 | 
															
																                    euipmentList = iotEqtDetailService.getEquipmentLocation(page,size); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    envelop.getDetailModelList().addAll(euipmentList); 
															 | 
															
															 | 
															
																                    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; 
															 | 
															
															 | 
															
																            return envelop; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																    } 
															 |