You've already forked FrameTour-BE
支持用户切换景区账号,单账号多景区权限
This commit is contained in:
@@ -3,19 +3,19 @@
|
||||
<mapper namespace="com.ycwl.basic.mapper.PermissionMapper">
|
||||
<!-- 新增插入语句 -->
|
||||
<insert id="insertPermission">
|
||||
INSERT INTO permission (user_id, perm_str, create_time, update_time)
|
||||
INSERT INTO account_permission (user_id, perm_str, create_time, update_time)
|
||||
VALUES (#{userId}, #{permString}, NOW(), NOW())
|
||||
</insert>
|
||||
|
||||
<!-- 新增更新语句 -->
|
||||
<update id="updatePermission">
|
||||
UPDATE permission
|
||||
UPDATE account_permission
|
||||
SET perm_str = #{permString}, update_time = NOW()
|
||||
WHERE user_id = #{userId}
|
||||
</update>
|
||||
<select id="selectByUserId" resultType="com.ycwl.basic.model.pc.permission.entity.PermissionEntity">
|
||||
SELECT id, user_id, perm_str as permString, create_time, update_time
|
||||
FROM permission
|
||||
FROM account_permission
|
||||
WHERE user_id = #{userId}
|
||||
limit 1
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user