中扬CRM客户关系管理系统
#
luxiaotao1123
2022-09-16 48e6a7175d35994d54d2dd86d7ee12f3f0cc50f3
src/main/resources/mapper/UserMapper.xml
@@ -38,4 +38,17 @@
        ORDER BY su.create_time DESC
    </select>
    <select id="getUserByDept" resultMap="BaseResultMap">
        SELECT
        *
        FROM sys_user
        where 1=1
        <if test="hostId != null and hostId != ''">
            and host_id = #{hostId}
        </if>
        <if test="deptId != null and deptId != ''">
            and dept_id = #{deptId}
        </if>
    </select>
</mapper>