|
@ -262,7 +262,7 @@ public class PatientInfoPlatFormService {
|
|
|
String sql = " SELECT idx.id,idx.user,idx.`name`,p.archive_type archiveType,p.residential_area residentialArea,'健康监测' as serve_desc, " +
|
|
|
"idx.czrq,value1,value2,value3,value4,value5,value6,value7,type FROM wlyy_patient_health_index idx " +
|
|
|
" INNER JOIN base_patient p on idx.user = p.id and p.del=1\n" +
|
|
|
" WHERE idx.del = 1 AND idx.type < 3 ORDER BY idx.czrq limit 1 ";
|
|
|
" WHERE idx.del = 1 AND idx.type < 3 ORDER BY idx.czrq ";
|
|
|
String countSql = "select count(id) from ("+sql+")A ";
|
|
|
long count = jdbcTemplate.queryForObject(countSql,long.class);
|
|
|
sql +=" limit "+page*pageSize+","+pageSize;
|