|  | @ -1992,7 +1992,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |                 "patient.photo AS photo," +
 |  |                 "patient.photo AS photo," +
 | 
												
													
														
															|  |                 "patient.birthday AS birthday," +
 |  |                 "patient.birthday AS birthday," +
 | 
												
													
														
															|  |                 "room.consult_type AS consult_type," +
 |  |                 "room.consult_type AS consult_type," +
 | 
												
													
														
															|  |                 "date_format(room.reservation_time ,'%Y-%m-%d %H:%i:%S' ) AS time," +
 |  | 
 | 
												
													
														
															|  | 
 |  |                 "(room.reservation_time ,'%Y-%m-%d %H:%i:%S' ) AS timedate_format," +
 | 
												
													
														
															|  |                 "outpatient.disease_img AS disease_img," +
 |  |                 "outpatient.disease_img AS disease_img," +
 | 
												
													
														
															|  |                 "outpatient.description AS description," +
 |  |                 "outpatient.description AS description," +
 | 
												
													
														
															|  |                 "room.reservation_type AS reservation_type," +
 |  |                 "room.reservation_type AS reservation_type," +
 | 
												
											
												
													
														
															|  | @ -3450,4 +3450,16 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
												
													
														
															|  |         rs.put("mes","取消成功");
 |  |         rs.put("mes","取消成功");
 | 
												
													
														
															|  |         return  rs;
 |  |         return  rs;
 | 
												
													
														
															|  | 	}
 |  | 	}
 | 
												
													
														
															|  | 
 |  |     
 | 
												
													
														
															|  | 
 |  |     /**
 | 
												
													
														
															|  | 
 |  |      * 获取居民当日就诊列表
 | 
												
													
														
															|  | 
 |  |      * @param patient
 | 
												
													
														
															|  | 
 |  |      * @return
 | 
												
													
														
															|  | 
 |  |      */
 | 
												
													
														
															|  | 
 |  | 	public List<Map<String,Object>> getTodayOutpatinetList(String patient) {
 | 
												
													
														
															|  | 
 |  |         String sql ="SELECT date_format(p.register_date ,'%Y-%m-%d %H:%i:%S' ) AS time,d.NAME as doctorName,d.job_title_name,d.photo AS photo,p.id as outpatientid FROM wlyy_outpatient p,base_doctor d " +
 | 
												
													
														
															|  | 
 |  |                 "WHERE p.patient='"+patient+"' AND p.doctor=d.id AND p.status=0 AND p.register_date BETWEEN '"+DateUtil.dateToStrShort(new Date())+" 00:00:00' AND '"+DateUtil.dateToStrShort(new Date())+" 23:59:59'";
 | 
												
													
														
															|  | 
 |  |         List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
 | 
												
													
														
															|  | 
 |  |         return list;
 | 
												
													
														
															|  | 
 |  | 	}
 | 
												
													
														
															|  | }
 |  | }
 |