|
@ -211,10 +211,10 @@ public class DeviceHealthIndexService extends BaseDeviceJpaService<DeviceHealthI
|
|
filter.append(" and (s.doctor_name like '%"+doctorName+"%' or s.doctor_health_name like '%"+doctorName+"%') ");
|
|
filter.append(" and (s.doctor_name like '%"+doctorName+"%' or s.doctor_health_name like '%"+doctorName+"%') ");
|
|
}
|
|
}
|
|
if(!StringUtils.isEmpty(deviceSn)){
|
|
if(!StringUtils.isEmpty(deviceSn)){
|
|
filter.append(" and i.deviceSn="+deviceSn);
|
|
|
|
|
|
filter.append(" and i.device_sn='"+deviceSn+"' ");
|
|
}
|
|
}
|
|
if(!StringUtils.isEmpty(idcard)){
|
|
if(!StringUtils.isEmpty(idcard)){
|
|
filter.append(" and i.idcard="+idcard);
|
|
|
|
|
|
filter.append(" and i.idcard='"+idcard+"' ");
|
|
}
|
|
}
|
|
//体征数据创建时间
|
|
//体征数据创建时间
|
|
if(!StringUtils.isEmpty(date)){
|
|
if(!StringUtils.isEmpty(date)){
|
|
@ -234,35 +234,20 @@ public class DeviceHealthIndexService extends BaseDeviceJpaService<DeviceHealthI
|
|
filter.append(" and i.type="+indexType);
|
|
filter.append(" and i.type="+indexType);
|
|
}
|
|
}
|
|
//体征数据
|
|
//体征数据
|
|
if("1".equals(indexType)||"2".equals(indexType)||"4".equals(indexType)){
|
|
|
|
if(indexTypeMin1!=null){
|
|
|
|
filter.append(" and value1>="+indexTypeMin1);
|
|
|
|
}
|
|
|
|
if(indexTypeMax1!=null){
|
|
|
|
filter.append(" and value1<="+indexTypeMax1);
|
|
|
|
}
|
|
|
|
if(indexTypeMin2!=null){
|
|
|
|
filter.append(" and value2>="+indexTypeMin2);
|
|
|
|
}
|
|
|
|
if(indexTypeMax2!=null){
|
|
|
|
filter.append(" and value2<="+indexTypeMax2);
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
if(indexTypeMin1!=null){
|
|
|
|
filter.append(" and value3>="+indexTypeMin1);
|
|
|
|
}
|
|
|
|
if(indexTypeMax1!=null){
|
|
|
|
filter.append(" and value3<="+indexTypeMax1);
|
|
|
|
}
|
|
|
|
if(indexTypeMin2!=null){
|
|
|
|
filter.append(" and value4>="+indexTypeMin2);
|
|
|
|
}
|
|
|
|
if(indexTypeMax2!=null){
|
|
|
|
filter.append(" and value4<="+indexTypeMax2);
|
|
|
|
}
|
|
|
|
|
|
if(indexTypeMin1!=null){
|
|
|
|
filter.append(" and value1>="+indexTypeMin1);
|
|
|
|
}
|
|
|
|
if(indexTypeMax1!=null){
|
|
|
|
filter.append(" and value1<="+indexTypeMax1);
|
|
|
|
}
|
|
|
|
if(indexTypeMin2!=null){
|
|
|
|
filter.append(" and value2>="+indexTypeMin2);
|
|
|
|
}
|
|
|
|
if(indexTypeMax2!=null){
|
|
|
|
filter.append(" and value2<="+indexTypeMax2);
|
|
}
|
|
}
|
|
String f = filter.toString();
|
|
String f = filter.toString();
|
|
List<Map<String, Object>> resultList = jdbcTemplate.queryForList(sql+f+" order by i.czrq desc ");
|
|
|
|
|
|
List<Map<String, Object>> resultList = jdbcTemplate.queryForList(sql+f+" order by i.czrq desc limit 0,1000");
|
|
|
|
|
|
String regex = "(\\w{3})(\\w+)(\\w{3})";
|
|
String regex = "(\\w{3})(\\w+)(\\w{3})";
|
|
List<DeviceHealthIndexVO> listTemp = new ArrayList<>();
|
|
List<DeviceHealthIndexVO> listTemp = new ArrayList<>();
|