package cn.hnthyy.thmz.mapper.his.zd;

import cn.hnthyy.thmz.entity.his.zd.ZdEmpTitle;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ZdEmpTitleMapper {
    /**
     * 查询医生职称
     * @param code
     * @return
     */
    @Select("select rtrim(code) code,rtrim(name) name,rtrim(py_code) py_code,rtrim(d_code) wb_code,tit_grade from zd_emp_title where code = #{code,jdbcType=CHAR}")
    ZdEmpTitle selectByCode(@Param("code") String code);



    /**
     * 查询所有医生职称列表
     *
     * @return
     */
    @Select("select rtrim(code) code,rtrim(name) name,rtrim(py_code) py_code,rtrim(d_code) wb_code,tit_grade from zd_emp_title")
    List<ZdEmpTitle> selectAllZdEmpTitle();
}
