|
@@ -19,7 +19,7 @@ public interface AppointmentDao {
|
|
|
@Select("select " +
|
|
|
"rtrim(a.code) doctorCode, " +
|
|
|
"rtrim(a.name) doctorName, " +
|
|
|
- "rtrim(b.name) doctorTitle, " +
|
|
|
+ "doctorTitle=(select rtrim(d.name) from zd_emp_title d where d.code=a.emp_tit_code), " +
|
|
|
"rtrim(a.dept_code) deptCode, " +
|
|
|
"deptName=(select rtrim(name) from zd_unit_code with(nolock) where code=a.dept_code), " +
|
|
|
"a.specialty, " +
|
|
@@ -27,9 +27,8 @@ public interface AppointmentDao {
|
|
|
"a.portrait, " +
|
|
|
"collected=(select count(1) from t_wechat_patient_collection with(nolock) where " +
|
|
|
"doctor_code=#{doctorCode} and open_id=#{openId}) " +
|
|
|
- "from a_employee_mi a with(nolock), zd_emp_title b with(nolock) " +
|
|
|
+ "from a_employee_mi a with(nolock) " +
|
|
|
"where a.code=#{doctorCode} and " +
|
|
|
- "a.emp_tit_code=b.code and " +
|
|
|
"a.code not in ('00000', '00026') and " +
|
|
|
"isnull(a.del_flag,0)<>1")
|
|
|
DoctorInfo selectDoctorInfo(@Param("doctorCode") String doctorCode, @Param("openId") String openId);
|