瀏覽代碼

更新sql

tags/v1.2.0^2
xiaoying 1 年之前
父節點
當前提交
346d9afd1c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/MenuMapper.xml

+ 4
- 1
tuoheng-service/tuoheng-admin/src/main/resources/mapper/MenuMapper.xml 查看文件

@@ -32,7 +32,10 @@
select
<include refid="Base_Column_List"/>
from op_menus
where mark = 1 and parent_id = 0 and client_id = #{clientId}
where mark = 1 and parent_id = 0
<if test="clientId != null and clientId !=''">
and client_id = #{clientId}
</if>
and status = 1
and id in (select menu_id from op_role_menu where role_id = #{roleId} and mark = 1)
order by sort asc

Loading…
取消
儲存