|
@ -240,7 +240,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
} else {
|
|
|
throw new Exception("label is not exist");
|
|
|
}
|
|
|
sql += " order by openid desc ";
|
|
|
sql += " order by openid desc,convert(name using gbk) ";
|
|
|
args = new Object[]{doctor, doctor, teamCode};
|
|
|
} else {
|
|
|
if (labelCode.equals("0")) {
|
|
@ -255,7 +255,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
" t2.patient is null " +
|
|
|
" AND (t1.doctor = ? or t1.doctor_health = ?) " +
|
|
|
" AND t1.status > 0 " +
|
|
|
" AND t1.admin_team_code = ? order by t1.openid desc ";
|
|
|
" AND t1.admin_team_code = ? order by t1.openid desc,convert(t1.name using gbk) ";
|
|
|
|
|
|
args = new Object[]{labelType, doctor, doctor, teamCode};
|
|
|
} else {
|
|
@ -271,7 +271,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
" AND t1.patient = t2.patient " +
|
|
|
" AND (t1.doctor = ? or t1.doctor_health = ?)" +
|
|
|
" AND t1.status > 0 " +
|
|
|
" AND t1.admin_team_code = ? order by t1.openid desc ";
|
|
|
" AND t1.admin_team_code = ? order by t1.openid desc,convert(t1.name using gbk) ";
|
|
|
|
|
|
args = new Object[]{labelCode, labelType, doctor, doctor, teamCode};
|
|
|
}
|
|
@ -2081,7 +2081,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
} else {
|
|
|
throw new Exception("label is not exist");
|
|
|
}
|
|
|
sql += " order by openid desc ";
|
|
|
sql += " order by openid desc,convert(name using gbk) ";
|
|
|
args = new Object[]{teamCode};
|
|
|
} else {
|
|
|
if (labelCode.equals("0")) {
|
|
@ -2095,7 +2095,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
" WHERE " +
|
|
|
" t2.patient is null " +
|
|
|
" AND t1.status > 0 " +
|
|
|
" AND t1.admin_team_code = ? order by t1.openid desc ";
|
|
|
" AND t1.admin_team_code = ? order by t1.openid desc,convert(t1.name using gbk) ";
|
|
|
|
|
|
args = new Object[]{teamCode, labelType, teamCode};
|
|
|
} else {
|
|
@ -2110,7 +2110,7 @@ public class SignPatientLabelInfoService extends BaseService {
|
|
|
" AND t2.status = 1 " +
|
|
|
" AND t1.patient = t2.patient " +
|
|
|
" AND t1.status > 0 " +
|
|
|
" AND t1.admin_team_code = ? order by t1.openid desc ";
|
|
|
" AND t1.admin_team_code = ? order by t1.openid desc,convert(t1.name using gbk) ";
|
|
|
|
|
|
args = new Object[]{labelCode, labelType, teamCode};
|
|
|
}
|