|
@ -1165,7 +1165,7 @@ public class PatientDeviceService extends BaseJpaService<DevicePatientDevice, Pa
|
|
|
*/
|
|
|
public JSONObject getSleepReport(String patient,String deviceSn,String day){
|
|
|
JSONObject result = new JSONObject();
|
|
|
String sql = " select * from base_sleep_device where 1=1 ";
|
|
|
String sql = " select * from base_sleep_device where del=1 ";
|
|
|
if (StringUtils.isNotBlank(patient)){
|
|
|
sql +=" and patient='"+patient+"'";
|
|
|
}
|