| 
					
				 | 
			
			
				@ -175,14 +175,15 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					public List<Map<String,Object>>  findConsultRecordByPatient(String patient, String id,String type, int page,int pagesize, String title,Integer status,Integer payStatus) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					/*	if(page >=1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						if(page >=1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							page --; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						if (pagesize <= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							pagesize = 10; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						}*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String  sql = "SELECT " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"a.id AS \"id\"," + 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -195,8 +196,8 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"d.name AS \"doctorName\"," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"d.photo AS \"doctorphoto\"," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"d.job_title_name AS \"jobTitleName\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"h.dept_name AS \"deptName\" " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"a.pay_status AS \"payStatus\","+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"h.dept_name AS \"deptName\", " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"a.pay_status AS \"payStatus\" "+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"FROM wlyy_consult a," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"wlyy_consult_team b," + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
								"base_doctor d, " + 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -229,7 +230,7 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							sql += " and a.pay_status = " + payStatus + ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						sql += " ORDER BY a.czrq desc limit "+page * pagesize+","+pagesize+""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						List<Map<String,Object>> result = hibenateUtils.createSQLQuery(sql,page,pagesize); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						List<Map<String,Object>> result = hibenateUtils.createSQLQuery(sql); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						/*result = jdbcTemplate.query(sql, new BeanPropertyRowMapper(ConsultVO.class));*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						return result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1697,7 +1698,13 @@ public class ImService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					                                                  String type, Integer status, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					                                                  int page,int pagesize, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
					                                                  String title,String start_time,String end_time) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						if(page >=1){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							page --; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						if (pagesize <= 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							pagesize = 10; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						String  sql = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						//专家咨询 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						if("1".equals(type) || "15".equals(type) || type.contains(",")){ 
			 |