|
@ -44,7 +44,7 @@ public class CareDoctorService extends BaseJpaService<BaseDoctorDO, BaseDoctorDa
|
|
|
* @return
|
|
|
*/
|
|
|
public Map<String,Object> doctorInfo(String doctorId,String isRole){
|
|
|
String sql = "SELECT d.id,d.name,d.level,d.photo,d.introduce,d.mobile,d.idcard,d.sex,h.dept_code deptCode,h.dept_name deptName,d.job_title_code jobTitleCode,d.job_title_name jobTitleName ";
|
|
|
String sql = "SELECT d.id,d.name,d.level,d.photo,d.introduce,d.expertise,d.mobile,d.idcard,d.sex,h.dept_code deptCode,h.dept_name deptName,d.job_title_code jobTitleCode,d.job_title_name jobTitleName ";
|
|
|
sql += " ,h.org_code orgCode,org.address orgAddress,h.org_name orgName from base_doctor d left join base_doctor_hospital h on d.id = h.doctor_code and h.del = 1" +
|
|
|
" LEFT JOIN base_org org on h.org_code = org.`code` WHERE d.id = '"+doctorId+"' limit 1 ";
|
|
|
List<Map<String,Object>> list = jdbcTemplate.queryForList(sql);
|