#
luxiaotao1123
2024-02-01 528d0da19f5fc3f5c78af3c99a1f2cfa914a27dd
zy-asrs-wcs/src/main/resources/mapper/sys/UserRoleMapper.xml
@@ -2,4 +2,15 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zy.asrs.wcs.sys.mapper.UserRoleMapper">
    <select id="selectByUserId" resultType="com.zy.asrs.wcs.sys.entity.Role">
        select *
        from sys_role
        where 1=1
        and role_id in (
            select role_id
            from sys_user_role
            where user_id = #{userId}
        )
        and deleted = 0
    </select>
</mapper>