forked from kidgrow-microservices-platform

houruijun
2020-10-20 528658799b844839502e824bbf540c6827588427
kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysUserMapper.xml
@@ -36,6 +36,9 @@
    </sql>
    <sql id="where_map">
        <where>
            <if test="u.isDel != null">
                and t.is_del = #{u.isDel}
            </if>
            <if test="u.id != null and u.id != ''">
                and t.id like concat('%', #{u.id}, '%')
            </if>
@@ -147,6 +150,9 @@
      left JOIN sys_hospital syshos on sysdoctor.hospital_id=syshos.id
      left JOIN sys_department sysdep on sysdoctor.department_id=sysdep.id
      where sysuser.id=#{userId}
      and sysuser.is_del=0 and sysuser.enabled=1
      and syshos.is_del=0 and syshos.enabled=1
      and sysdep.is_del=0 and sysdep.enabled=1
   </select>
    <select id="hospitalDoctorList" parameterType="long" resultType="com.kidgrow.usercenter.vo.HospitalDoctorListVo">
        SELECT
@@ -176,6 +182,7 @@
    </select>
    <select id="hospitalDoctorListAndDel" parameterType="long" resultType="com.kidgrow.usercenter.vo.HospitalDoctorListVo">
        SELECT
        distinct
        dc.create_time,
        dc.department_name,
        dc.hospital_name,
@@ -190,7 +197,7 @@
        us.username,
        us.default_auth,
        us.enabled,
      roleuser.role_id,
--       roleuser.role_id,
      dc.is_del
        FROM
        sys_doctor dc