| 
															
																@ -212,7 +212,7 @@ public class WlyygcStatisticsService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                ", base_service_package_record r, base_security_monitoring_order o " + 
															 | 
															
															 | 
															
																                ", base_service_package_record r, base_security_monitoring_order o " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "WHERE p.del = 1 and p.archive_type =1 and r.patient = p.id " + 
															 | 
															
															 | 
															
																                "WHERE p.del = 1 and p.archive_type =1 and r.patient = p.id " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "and p.id = o.patient " + filter + 
															 | 
															
															 | 
															
																                "and p.id = o.patient " + filter + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                " ) a ORDER BY a.create_time desc limit "+(page - 1)+","+size; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                " ) a ORDER BY a.create_time desc limit "+(page - 1)*size+","+size; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<Map<String,Object>> res = jdbcTemplate.queryForList(sql); 
															 | 
															
															 | 
															
																        List<Map<String,Object>> res = jdbcTemplate.queryForList(sql); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        for (Map<String,Object> map : res){ 
															 | 
															
															 | 
															
																        for (Map<String,Object> map : res){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            JSONObject json = new JSONObject(); 
															 | 
															
															 | 
															
																            JSONObject json = new JSONObject(); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -253,7 +253,7 @@ public class WlyygcStatisticsService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } else { 
															 | 
															
															 | 
															
																        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            return null; 
															 | 
															
															 | 
															
																            return null; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        sql += "ORDER BY p.`name` desc limit " + (page - 1) + "," + size; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        sql += "ORDER BY p.`name` desc limit " + (page - 1)*size + "," + size; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql); 
															 | 
															
															 | 
															
																        List<Map<String, Object>> maps = jdbcTemplate.queryForList(sql); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        return maps; 
															 | 
															
															 | 
															
																        return maps; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																    } 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -292,8 +292,8 @@ public class WlyygcStatisticsService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            return jsonObject; 
															 | 
															
															 | 
															
																            return jsonObject; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        jjsql += " ORDER BY ord.patient_name DESC limit " + (page - 1) + "," + size; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        afsql += " ORDER BY ord.patient_name DESC limit " + (page - 1) + "," + size; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        jjsql += " ORDER BY ord.patient_name DESC limit " + (page - 1)*size + "," + size; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        afsql += " ORDER BY ord.patient_name DESC limit " + (page - 1)*size + "," + size; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<Map<String, Object>> jj = jdbcTemplate.queryForList(jjsql); 
															 | 
															
															 | 
															
																        List<Map<String, Object>> jj = jdbcTemplate.queryForList(jjsql); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<Map<String, Object>> af = jdbcTemplate.queryForList(afsql); 
															 | 
															
															 | 
															
																        List<Map<String, Object>> af = jdbcTemplate.queryForList(afsql); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        jsonObject.put("Security", af); 
															 | 
															
															 | 
															
																        jsonObject.put("Security", af); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -332,7 +332,7 @@ public class WlyygcStatisticsService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "AND p.archive_type = 1 " + 
															 | 
															
															 | 
															
																                "AND p.archive_type = 1 " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "AND r.patient = p.id " + 
															 | 
															
															 | 
															
																                "AND r.patient = p.id " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "AND p.id = pd.`user` " + 
															 | 
															
															 | 
															
																                "AND p.id = pd.`user` " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                "AND wd.device_code = pd.device_sn "+filter+" ORDER BY pd.device_name DESC limit " + (page - 1) + "," + size; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                "AND wd.device_code = pd.device_sn "+filter+" ORDER BY pd.device_name DESC limit " + (page - 1)*size + "," + size; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<Map<String, Object>> maps = jdbcTemplate.queryForList(deviceSql); 
															 | 
															
															 | 
															
																        List<Map<String, Object>> maps = jdbcTemplate.queryForList(deviceSql); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        return maps; 
															 | 
															
															 | 
															
																        return maps; 
															 |