|  | @ -1169,7 +1169,7 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
 | 
												
													
														
															|  |             sql += " and device_sn='"+deviceSn+"' ";
 |  |             sql += " and device_sn='"+deviceSn+"' ";
 | 
												
													
														
															|  |         }
 |  |         }
 | 
												
													
														
															|  |         if (StringUtils.isNotBlank(day)){
 |  |         if (StringUtils.isNotBlank(day)){
 | 
												
													
														
															|  |             sql +=" and create_time>="+day+" 00:00:00 and create_time<'"+day+"' 23:59:59 ";
 |  | 
 | 
												
													
														
															|  | 
 |  |             sql +=" and create_time>='"+day+" 00:00:00' and create_time<'"+day+" 23:59:59' ";
 | 
												
													
														
															|  |         }else   {
 |  |         }else   {
 | 
												
													
														
															|  |             sql +=" order by create_time desc ";
 |  |             sql +=" order by create_time desc ";
 | 
												
													
														
															|  |         }
 |  |         }
 |