|
@ -114,12 +114,10 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
" FROM " +
|
|
|
" wlyy_sign_family t1 " +
|
|
|
" left join " +
|
|
|
" wlyy_sign_patient_label_info t2 " +
|
|
|
" (select patient,label,label_type from wlyy_sign_patient_label_info where label_type = ? and status = 1) t2 " +
|
|
|
" on t1.patient = t2.patient " +
|
|
|
" WHERE " +
|
|
|
" t2.label_type = ? " +
|
|
|
" AND t2.status = 1 " +
|
|
|
" AND t2.patient is null " +
|
|
|
" t2.patient is null " +
|
|
|
" AND t1." + (doc.getLevel() == 2 ? "doctor" : "doctor_health") + " = ? " +
|
|
|
" AND t1.status > 0 " +
|
|
|
" AND t1.admin_team_code = ? limit " + start + "," + pagesize;
|
|
@ -369,12 +367,10 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
" FROM" +
|
|
|
" wlyy_sign_family t1 " +
|
|
|
" left join " +
|
|
|
" wlyy_sign_patient_label_info t2 " +
|
|
|
" (SELECT patient,label,label_type from wlyy_sign_patient_label_info where label_type = ? and status = 1) t2 " +
|
|
|
" on t1.patient = t2.patient " +
|
|
|
" WHERE" +
|
|
|
" t2.label_type = ? " +
|
|
|
" AND t2.status = 1 " +
|
|
|
" AND t2.patient is null " +
|
|
|
" t2.patient is null " +
|
|
|
" AND t1." + (doc.getLevel() == 2 ? "doctor" : "doctor_health") + " = ? " +
|
|
|
" AND t1.status > 0 " +
|
|
|
(teamCode > 0 ? " AND t1.admin_team_code = ? " : "");
|