|
|
|
@ -8,6 +8,10 @@ |
|
|
|
|
permission_type,permission_key,name,sys_resource_id,id,status,create_time,create_user_id,update_time,update_user_id |
|
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
<sql id="sp_column_list"> |
|
|
|
|
permission_type,permission_key,name,sys_resource_id,sp.id,sp.status,sp.create_time,sp.create_user_id,sp.update_time,sp.update_user_id |
|
|
|
|
</sql> |
|
|
|
|
|
|
|
|
|
<select id="findOne" resultType="com.lq.entity.SysPermission" parameterType="long"> |
|
|
|
|
SELECT <include refid="column_list"/> |
|
|
|
|
FROM sys_permission |
|
|
|
@ -21,10 +25,13 @@ |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="findListPage" resultType="SysPermissionVo" parameterType="SysPermissionVo"> |
|
|
|
|
SELECT <include refid="column_list"/> |
|
|
|
|
FROM sys_permission |
|
|
|
|
WHERE status = 1 |
|
|
|
|
ORDER BY create_time DESC,update_time DESC |
|
|
|
|
SELECT <include refid="sp_column_list"/> ,create_su.login_name createUserName,update_su.login_name updateUserName,sr.menu_name sysResourceName |
|
|
|
|
FROM sys_permission sp |
|
|
|
|
LEFT JOIN sys_resource sr ON sp.sys_resource_id = sr.id |
|
|
|
|
LEFT JOIN sys_user create_su ON sp.create_user_id = create_su.id AND create_su.status = 1 |
|
|
|
|
LEFT JOIN sys_user update_su ON sp.update_user_id = update_su.id AND update_su.status = 1 |
|
|
|
|
WHERE sp.status = 1 |
|
|
|
|
ORDER BY sp.create_time DESC,sp.update_time DESC |
|
|
|
|
</select> |
|
|
|
|
|
|
|
|
|
<select id="count" resultType="int" parameterType="SysPermissionVo"> |
|
|
|
|