SysApiMapper.xml 930 B

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.zhgd.scs.mapper.SysApiMapper">
  6. <sql id="Base_Column_List">
  7. id,url,name
  8. </sql>
  9. <select id="innerPage" resultType="com.zhgd.scs.domain.SysApi">
  10. SELECT a.*
  11. FROM sys_api a
  12. WHERE TRUE
  13. <if test="isWhitelist!=null">
  14. AND a.is_whitelist = #{isWhitelist}
  15. </if>
  16. <if test="url!=null and url!= ''">
  17. AND a.url LIKE concat('%',#{url},'%')
  18. </if>
  19. <if test="methodName!=null and methodName!= ''">
  20. AND a.method_name LIKE concat('%',#{methodName},'%')
  21. </if>
  22. <if test="controllerName!=null and controllerName!= ''">
  23. AND a.controller_name LIKE concat('%',#{controllerName},'%')
  24. </if>
  25. </select>
  26. </mapper>