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