zhangherong
2025-07-03 1b5a723592ea63e5eec0bdeef7855b9c40e9df71
lxzn-module-system/lxzn-system-biz/src/main/java/org/jeecg/modules/system/mapper/xml/SysPermissionMapper.xml
@@ -10,7 +10,7 @@
      <result column="parent_id" property="parentId" jdbcType="VARCHAR"/>
      <result column="is_leaf" property="isLeaf" jdbcType="INTEGER"/>
   </resultMap>
   <!-- 通过<resultMap>映射实体类属性名和表的字段名对应关系 -->
   <resultMap id="SysPermission" type="org.jeecg.modules.system.entity.SysPermission">
      <!-- result属性映射非匹配字段 -->
@@ -18,10 +18,10 @@
       <result column="keep_alive" property="keepAlive"/>
       <result column="is_leaf" property="leaf"/>
   </resultMap>
   <select id="queryListByParentId" parameterType="Object"  resultMap="TreeModel">
         SELECT
         SELECT
                   id
                   ,parent_id
                   ,name
@@ -38,7 +38,7 @@
               </otherwise>
          </choose>
   </select>
   <!-- 获取登录用户拥有的权限 -->
   <select id="queryByUser" parameterType="Object"  resultMap="SysPermission">
         SELECT * FROM (
@@ -112,7 +112,18 @@
      and id in (
         select permission_id from sys_depart_permission where depart_id = #{departId}
      )
      order by sort_no ASC
      order by sort_no ASC
   </select>
</mapper>
   <select id="secretOfSelect" resultType="Map">
      ${sql}
   </select>
   <update id="secretOfUpdate">
      ${sql}
   </update>
   <insert id="secretOfInsert">
      ${sql}
   </insert>
   <delete id="secretOfDelete">
      ${sql}
   </delete>
</mapper>