diff --git a/base-manager/src/main/resources/sqlmap/base/system/userExt.xml b/base-manager/src/main/resources/sqlmap/base/system/userExt.xml new file mode 100644 index 0000000000000000000000000000000000000000..7c497c791b4bd98f54acf29602bb640b4be2ea7a --- /dev/null +++ b/base-manager/src/main/resources/sqlmap/base/system/userExt.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"mybatis-3-mapper.dtd"> +<mapper namespace="com.mortals.iot.base.system.user.dao.ibatis.UserDaoImpl"> + + <!-- 鑾峰彇鍒楄〃 --> + <select id="getAuthListById" parameterType="paramDto" resultType="Long"> + select resourceId + from mortals_iot_role_auth as a + left join mortals_iot_role_user as b + on a.roleId=b.roleId + where b.userId=#{condition.id} + </select> +</mapper> \ No newline at end of file diff --git a/portal-manager/src/main/resources/sqlmap/module/user/userExt.xml b/portal-manager/src/main/resources/sqlmap/module/user/userExt.xml new file mode 100644 index 0000000000000000000000000000000000000000..8c9e82d439ff02c4e60a073495cf4814ab7a871e --- /dev/null +++ b/portal-manager/src/main/resources/sqlmap/module/user/userExt.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"mybatis-3-mapper.dtd"> +<mapper namespace="com.mortals.xhx.module.user.dao.ibatis.UserDaoImpl"> + + <!-- 鑾峰彇鍒楄〃 --> + <select id="getAuthListById" parameterType="paramDto" resultType="Long"> + select resourceId + from mortals_iot_role_auth as a + left join mortals_iot_role_user as b + on a.roleId=b.roleId + where b.userId=#{condition.id} + </select> +</mapper> \ No newline at end of file