yangys
2024-10-29 d728f14a2f23cb477ebfecd33df5f7e5cb54a178
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?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">
<mapper namespace="com.qianwen.smartman.modules.system.mapper.ResourceDefinitionMapper">
 
    <select id="pageByCondition" resultType="com.qianwen.core.scanner.modular.model.ResourceDefinition">
        SELECT
            *
        FROM
            blade_resource_definition
        WHERE
                1 = 1
        <if test="menuId != null and menuId != ''">
            AND code NOT IN
                ( SELECT resource_code FROM blade_scope_api WHERE is_deleted = 0 AND menu_id = #{menuId})
        </if>
        <if test="moduleCode != null and moduleCode != ''">
            AND module_code = #{moduleCode}
        </if>
        <if test="controllerCode != null and controllerCode != ''">
            AND controller_code = #{controllerCode}
        </if>
 
    </select>
</mapper>