|
@ -684,7 +684,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 " +
|
|
|
"idx.czrq,value1,value2,value3,value4,value5,value6,value7,type,DATE_FORMAT(idx.czrq,'%Y-%m-%d %H:%i:%S') createTime 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 "+filter+" ORDER BY idx.czrq desc ";
|
|
|
String countSql = "select count(id) from ("+sql+")A ";
|
|
@ -1167,7 +1167,7 @@ public class PatientInfoPlatFormService {
|
|
|
}
|
|
|
String sql = "SELECT\n" +
|
|
|
"\t\tidx.id,\n" +
|
|
|
"\t\tidx.USER,\n" +
|
|
|
"\t\tidx.user,\n" +
|
|
|
"\t\tidx.`name`,idx.type,\n" +
|
|
|
"\t\tp.archive_type archiveType,\n" +
|
|
|
"\t\tp.residential_area residentialArea,\n" +
|
|
@ -1181,7 +1181,14 @@ public class PatientInfoPlatFormService {
|
|
|
"\t\tvalue5,\n" +
|
|
|
"\t\tvalue6,\n" +
|
|
|
"\t\tvalue7,\n" +
|
|
|
"\t\ttype,DATE_FORMAT( idx.czrq, '%Y-%m-%d %H:%i:%S' ) createTime \n" +
|
|
|
"\t\ttype,DATE_FORMAT( idx.czrq, '%Y-%m-%d %H:%i:%S' ) createTime, \n" +
|
|
|
"\tCASE\n" +
|
|
|
"\t\t\tp.sex \n" +
|
|
|
"\t\t\tWHEN 1 THEN\n" +
|
|
|
"\t\t\t'男' \n" +
|
|
|
"\t\t\tWHEN 2 THEN\n" +
|
|
|
"\t\t\t'女' ELSE p.sex \n" +
|
|
|
"\t\tEND AS sex\n" +
|
|
|
"\tFROM\n" +
|
|
|
"\t\twlyy_patient_health_index idx\n" +
|
|
|
"\t\tINNER JOIN base_patient p ON idx.USER = p.id AND p.del = 1 \n" +
|