仲裁机构管理,模板管理联调
This commit is contained in:
@@ -57,8 +57,8 @@
|
||||
<select id="selectMenuListByUserId" parameterType="com.ruoyi.common.core.domain.entity.SysMenu" resultMap="SysMenuResult">
|
||||
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
||||
from ms_sys_menu m
|
||||
left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_ms_sys_user_role ur on rm.role_id = ur.role_id
|
||||
left join ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_sys_user_role ur on rm.role_id = ur.role_id
|
||||
left join ms_sys_role ro on ur.role_id = ro.role_id
|
||||
where ur.user_id = #{params.userId}
|
||||
<if test="menuName != null and menuName != ''">
|
||||
@@ -76,8 +76,8 @@
|
||||
<select id="selectMenuTreeByUserId" parameterType="Long" resultMap="SysMenuResult">
|
||||
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
|
||||
from ms_sys_menu m
|
||||
left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_ms_sys_user_role ur on rm.role_id = ur.role_id
|
||||
left join ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_sys_user_role ur on rm.role_id = ur.role_id
|
||||
left join ms_sys_role ro on ur.role_id = ro.role_id
|
||||
left join ms_sys_user u on ur.user_id = u.user_id
|
||||
where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0 AND ro.status = 0
|
||||
@@ -87,10 +87,10 @@
|
||||
<select id="selectMenuListByRoleId" resultType="Long">
|
||||
select m.menu_id
|
||||
from ms_sys_menu m
|
||||
left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
where rm.role_id = #{roleId}
|
||||
<if test="menuCheckStrictly">
|
||||
and m.menu_id not in (select m.parent_id from ms_sys_menu m inner join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId})
|
||||
and m.menu_id not in (select m.parent_id from ms_sys_menu m inner join ms_sys_role_menu rm on m.menu_id = rm.menu_id and rm.role_id = #{roleId})
|
||||
</if>
|
||||
order by m.parent_id, m.order_num
|
||||
</select>
|
||||
@@ -98,15 +98,15 @@
|
||||
<select id="selectMenuPerms" resultType="String">
|
||||
select distinct m.perms
|
||||
from ms_sys_menu m
|
||||
left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_ms_sys_user_role ur on rm.role_id = ur.role_id
|
||||
left join ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_sys_user_role ur on rm.role_id = ur.role_id
|
||||
</select>
|
||||
|
||||
<select id="selectMenuPermsByUserId" parameterType="Long" resultType="String">
|
||||
select distinct m.perms
|
||||
from ms_sys_menu m
|
||||
left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_ms_sys_user_role ur on rm.role_id = ur.role_id
|
||||
left join ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_sys_user_role ur on rm.role_id = ur.role_id
|
||||
left join ms_sys_role r on r.role_id = ur.role_id
|
||||
where m.status = '0' and r.status = '0' and ur.user_id = #{userId}
|
||||
</select>
|
||||
@@ -114,7 +114,7 @@
|
||||
<select id="selectMenuPermsByRoleId" parameterType="Long" resultType="String">
|
||||
select distinct m.perms
|
||||
from ms_sys_menu m
|
||||
left join ms_ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
left join ms_sys_role_menu rm on m.menu_id = rm.menu_id
|
||||
where m.status = '0' and rm.role_id = #{roleId}
|
||||
</select>
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectPostListByUserId" parameterType="Long" resultType="Long">
|
||||
select p.post_id
|
||||
from ms_sys_post p
|
||||
left join ms_ms_sys_user_post up on up.post_id = p.post_id
|
||||
left join ms_sys_user_post up on up.post_id = p.post_id
|
||||
left join ms_sys_user u on u.user_id = up.user_id
|
||||
where u.user_id = #{userId}
|
||||
</select>
|
||||
@@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectPostsByUserName" parameterType="String" resultMap="SysPostResult">
|
||||
select p.post_id, p.post_name, p.post_code
|
||||
from ms_sys_post p
|
||||
left join ms_ms_sys_user_post up on up.post_id = p.post_id
|
||||
left join ms_sys_user_post up on up.post_id = p.post_id
|
||||
left join ms_sys_user u on u.user_id = up.user_id
|
||||
where u.user_name = #{userName}
|
||||
</select>
|
||||
|
||||
+4
-4
@@ -15,7 +15,7 @@
|
||||
|
||||
</resultMap>
|
||||
<insert id="insertUser">
|
||||
insert into ms_ms_identi_authenti(
|
||||
insert into ms_identi_authenti(
|
||||
<if test="name != null and name != ''">name,</if>
|
||||
<if test="identityNo != null and identityNo != ''">identity_no,</if>
|
||||
certification_time,
|
||||
@@ -39,7 +39,7 @@
|
||||
)
|
||||
</insert>
|
||||
<update id="updateUser">
|
||||
update ms_ms_identi_authenti
|
||||
update ms_identi_authenti
|
||||
<set>
|
||||
<if test="phone != null and phone != ''">phone = #{phone},</if>
|
||||
<if test="email != null and email != ''">email = #{email},</if>
|
||||
@@ -50,11 +50,11 @@
|
||||
</update>
|
||||
<select id="selectIdentityAuthentication" resultMap="BaseResult">
|
||||
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name,open_id,phone,email
|
||||
from ms_ms_identi_authenti i
|
||||
from ms_identi_authenti i
|
||||
</select>
|
||||
<select id="selectUserByOppenId" resultMap="BaseResult">
|
||||
SELECT i.id ,i.name ,i.identity_no ,i.certification_time ,i.certification_status ,i.user_id ,i.user_name,open_id,phone,email
|
||||
from ms_ms_identi_authenti i where open_id=#{oppenId}
|
||||
from ms_identi_authenti i where open_id=#{oppenId}
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user