You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following query defined in MenuMapper.xml is not optimal:
<selectid="selectMenus"resultType="map">
select
<includerefid="Base_Column_List"/>
from sys_menu
...
<iftest="menuId != null and menuId != 0">
and (menu_id = #{menuId} or menu_id in ( select menu_id from sys_menu where pcodes like CONCAT('%$[', #{code}, '$]%') escape '$' ))
</if>
</select>
The sub-query could be eliminated and changes to a predicate on pcodes.
and (menu_id = #{menuId} or pcodes like CONCAT('%$[', #{code}, '$]%') escape '$' )
The text was updated successfully, but these errors were encountered:
wtune
added a commit
to wtune/Guns
that referenced
this issue
Jan 10, 2020
The following query defined in MenuMapper.xml is not optimal:
The sub-query could be eliminated and changes to a predicate on
pcodes
.The text was updated successfully, but these errors were encountered: