|
@@ -122,7 +122,7 @@
|
|
from uims_tenant_menu a
|
|
from uims_tenant_menu a
|
|
inner join uims_menu b on a.MENU_ID=b.id and b.STATUS=1
|
|
inner join uims_menu b on a.MENU_ID=b.id and b.STATUS=1
|
|
<where>
|
|
<where>
|
|
- a.status=1
|
|
|
|
|
|
+ a.status=1 and b.is_tenant=1
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
and a.MENU_NAME LIKE concat('%',#{name},'%')
|
|
and a.MENU_NAME LIKE concat('%',#{name},'%')
|
|
</if>
|
|
</if>
|
|
@@ -193,7 +193,7 @@
|
|
and a.tenant_id = #{tenantId}
|
|
and a.tenant_id = #{tenantId}
|
|
</if>
|
|
</if>
|
|
<where>
|
|
<where>
|
|
- a.status=1 and userrole.status=1
|
|
|
|
|
|
+ a.status=1 and userrole.status=1 and b.is_tenant=1
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
and a.MENU_NAME LIKE concat('%',#{name},'%')
|
|
and a.MENU_NAME LIKE concat('%',#{name},'%')
|
|
</if>
|
|
</if>
|
|
@@ -243,7 +243,7 @@
|
|
from uims_tenant_menu b
|
|
from uims_tenant_menu b
|
|
inner join uims_menu a on a.id= b.MENU_ID and a.status=1
|
|
inner join uims_menu a on a.id= b.MENU_ID and a.status=1
|
|
<where>
|
|
<where>
|
|
- b.status=1 and a.PARENT_MENU_ID=0 and a.show_state=1
|
|
|
|
|
|
+ b.status=1 and a.PARENT_MENU_ID=0 and a.show_state=1 and a.is_tenant=1
|
|
<if test="tenantId != null and tenantId != ''">
|
|
<if test="tenantId != null and tenantId != ''">
|
|
and b.tenant_id = #{tenantId}
|
|
and b.tenant_id = #{tenantId}
|
|
</if>
|
|
</if>
|
|
@@ -275,7 +275,7 @@
|
|
and b.tenant_id = #{tenantId}
|
|
and b.tenant_id = #{tenantId}
|
|
</if>
|
|
</if>
|
|
<where>
|
|
<where>
|
|
- userrole.status=1 and a.PARENT_MENU_ID=0 and a.SHOW_STATE=1
|
|
|
|
|
|
+ userrole.status=1 and a.PARENT_MENU_ID=0 and a.SHOW_STATE=1 and a.is_tenant=1
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
and userrole.user_id = #{userId}
|
|
and userrole.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
@@ -316,7 +316,7 @@
|
|
from uims_tenant_menu b
|
|
from uims_tenant_menu b
|
|
inner join uims_menu a on a.id= b.MENU_ID and a.status=1
|
|
inner join uims_menu a on a.id= b.MENU_ID and a.status=1
|
|
<where>
|
|
<where>
|
|
- b.status=1 and a.SHOW_STATE=1
|
|
|
|
|
|
+ b.status=1 and a.SHOW_STATE=1 and a.is_tenant=1
|
|
<if test="appId != null and appId != ''">
|
|
<if test="appId != null and appId != ''">
|
|
and a.app_id = #{appId}
|
|
and a.app_id = #{appId}
|
|
</if>
|
|
</if>
|
|
@@ -351,7 +351,7 @@
|
|
and b.tenant_id = #{tenantId}
|
|
and b.tenant_id = #{tenantId}
|
|
</if>
|
|
</if>
|
|
<where>
|
|
<where>
|
|
- userrole.status=1 and a.SHOW_STATE=1
|
|
|
|
|
|
+ userrole.status=1 and a.SHOW_STATE=1 and a.is_tenant=1
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
and userrole.user_id = #{userId}
|
|
and userrole.user_id = #{userId}
|
|
</if>
|
|
</if>
|