|
@ -281,23 +281,19 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
if(flag!=-1){
|
|
|
String label[] = labelCode.split("-");
|
|
|
sql = "SELECT " +
|
|
|
" t1.* ," +
|
|
|
" t2.openid AS opid" +
|
|
|
" t1.* " +
|
|
|
" FROM " +
|
|
|
" wlyy_sign_family t1 ,wlyy_patient t2" +
|
|
|
" WHERE t1.patient =t2.code " +
|
|
|
" AND (t1.doctor = ? or t1.doctor_health = ?) " +
|
|
|
" wlyy_sign_family t1 " +
|
|
|
" WHERE (t1.doctor = ? or t1.doctor_health = ?) " +
|
|
|
" AND t1.status > 0 " +
|
|
|
" AND t1.admin_team_code = ? AND t1.special_population = '"+label[1]+"'";
|
|
|
args = new Object[]{doctor, doctor, teamCode};
|
|
|
}else{
|
|
|
sql = "SELECT " +
|
|
|
" t1.* ," +
|
|
|
" t2.openid AS opid" +
|
|
|
" t1.* "+
|
|
|
" FROM " +
|
|
|
" wlyy_sign_family t1 ,wlyy_patient t2" +
|
|
|
" WHERE t1.patient =t2.code " +
|
|
|
" AND (t1.doctor = ? or t1.doctor_health = ?) " +
|
|
|
" wlyy_sign_family t1 " +
|
|
|
" WHERE (t1.doctor = ? or t1.doctor_health = ?) " +
|
|
|
" AND t1.status > 0 " +
|
|
|
" AND t1.admin_team_code = ? AND t1.server_type = '"+labelCode+"'";
|
|
|
args = new Object[]{doctor, doctor, teamCode};
|