李宇
2021-06-18 305aa3ffe7908b95d59cdf43723b81b4861ef2c1
src/main/java/com/nanometer/smartlab/dao/SysUserDao.xml
@@ -363,7 +363,7 @@
                and su.arp like #{arp}
            </if>
            <if test="name != null and name != ''">
                and su.name like #{name}
                and su.name like concat("%",#{name},"%")
            </if>
            <if test="departmentName != null and departmentName != ''">
                and su.department like concat("%",#{departmentName},"%")
@@ -378,11 +378,12 @@
        order by su.arp ASC
    </select>
    <select id="getLibrarianEmail" resultType="java.lang.String">
        select su.email
        from sys_user  as su
        left join base_role as br on br.id = su.role_id
        where  br.name = '库管员'
        where
            su.valid_flag = 1
        and br.name = '库管员'
        and su.email is not null
        and su.email != ''
    </select>