|
@ -487,7 +487,7 @@ public class DeviceService extends BaseService{
|
|
|
}else if (deviceType==2){
|
|
|
dateType=1;
|
|
|
}
|
|
|
String countSql = "SELECT count(*) num FROM device.wlyy_patient_health_index where `user`='"+patientDevice.getUser()+"' and type = "+dateType+" AND record_date >"+startTime+" and record_date <= "+endTime;
|
|
|
String countSql = "SELECT count(*) num FROM device.wlyy_patient_health_index where `user`='"+patientDevice.getUser()+"' and type = "+dateType+" AND record_date >'"+startTime+"' and record_date <= '"+endTime+"'";
|
|
|
Map<String,Object> countMap = jdbcTemplate.queryForMap(countSql);
|
|
|
dataUoloadCount = Integer.valueOf(String.valueOf(countMap.get("num")));
|
|
|
}else {
|