|
@ -318,7 +318,7 @@ public class LabelService {
|
|
*/
|
|
*/
|
|
public List<Map<String, Object>> findLabelPatientGroupCount(String name, String labelType,String doctorCode) {
|
|
public List<Map<String, Object>> findLabelPatientGroupCount(String name, String labelType,String doctorCode) {
|
|
String sql = "SELECT\n" +
|
|
String sql = "SELECT\n" +
|
|
" a.label_code,a.label_name,count(1) 'labelCount'\n" +
|
|
|
|
|
|
" DISTINCT a.label_code,a.label_name,count(1) 'labelCount'\n" +
|
|
"FROM\n" +
|
|
"FROM\n" +
|
|
" wlyy_patient_label a\n" +
|
|
" wlyy_patient_label a\n" +
|
|
" INNER JOIN base_patient b ON a.patient=b.id\n" +
|
|
" INNER JOIN base_patient b ON a.patient=b.id\n" +
|
|
@ -339,7 +339,7 @@ public class LabelService {
|
|
|
|
|
|
public List findLabelPatientList(String name, String labelType, String labelCode,String doctorCode) {
|
|
public List findLabelPatientList(String name, String labelType, String labelCode,String doctorCode) {
|
|
String sql = "SELECT\n" +
|
|
String sql = "SELECT\n" +
|
|
" a.label_code 'labelCode',a.label_name 'labelName', TIMESTAMPDIFF(YEAR, b.birthday, CURDATE()) AS age," +
|
|
|
|
|
|
" DISTINCT a.label_code 'labelCode',a.label_name 'labelName', TIMESTAMPDIFF(YEAR, b.birthday, CURDATE()) AS age," +
|
|
" b.* \n" +
|
|
" b.* \n" +
|
|
"FROM\n" +
|
|
"FROM\n" +
|
|
" wlyy_patient_label a\n" +
|
|
" wlyy_patient_label a\n" +
|