12345678910111213141516171819202122232425262728 |
- <?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.zhgd.scs.mapper.SysApiMapper">
- <sql id="Base_Column_List">
- id,url,name
- </sql>
- <select id="innerPage" resultType="com.zhgd.scs.domain.SysApi">
- SELECT a.*
- FROM sys_api a
- WHERE TRUE
- <if test="isWhitelist!=null">
- AND a.is_whitelist = #{isWhitelist}
- </if>
- <if test="url!=null and url!= ''">
- AND a.url LIKE concat('%',#{url},'%')
- </if>
- <if test="methodName!=null and methodName!= ''">
- AND a.method_name LIKE concat('%',#{methodName},'%')
- </if>
- <if test="controllerName!=null and controllerName!= ''">
- AND a.controller_name LIKE concat('%',#{controllerName},'%')
- </if>
- </select>
- </mapper>
|