<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mappernamespace="com.jeequan.jeepay.service.mapper.SysEntitlementMapper"><!-- 通用查询映射结果 --><resultMapid="BaseResultMap"type="com.jeequan.jeepay.core.entity.SysEntitlement"><idcolumn="ent_id"property="entId"/><resultcolumn="ent_name"property="entName"/><resultcolumn="menu_icon"property="menuIcon"/><resultcolumn="menu_uri"property="menuUri"/><resultcolumn="component_name"property="componentName"/><resultcolumn="ent_type"property="entType"/><resultcolumn="quick_jump"property="quickJump"/><resultcolumn="state"property="state"/><resultcolumn="pid"property="pid"/><resultcolumn="ent_sort"property="entSort"/><resultcolumn="system"property="system"/><resultcolumn="created_at"property="createdAt"/><resultcolumn="updated_at"property="updatedAt"/></resultMap><!-- 查询当前用户是否存在左侧菜单 (仅普通操作员) --><selectid="userHasLeftMenu"resultType="Integer"> select count(1) from t_sys_entitlement where ent_id in ( select DISTINCT ent_id from t_sys_role_ent_rela where role_id in ( select role_id from t_sys_user_role_rela where user_id = #{userId} ) ) and state = 1 and ent_type = 'ML' and system = #{system}</select></mapper>