<?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>
|