| | |
| | | <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属性映射非匹配字段 --> |
| | |
| | | <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 |
| | |
| | | </otherwise> |
| | | </choose> |
| | | </select> |
| | | |
| | | |
| | | <!-- 获取登录用户拥有的权限 --> |
| | | <select id="queryByUser" parameterType="Object" resultMap="SysPermission"> |
| | | SELECT * FROM ( |
| | |
| | | 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> |