Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 

61 строка
2.1 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.iformall.mapper.WxAuthorizerInfoMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxAuthorizerInfo">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="authorizer_appid" jdbcType="VARCHAR" property="authorizerAppid" />
  7. <result column="head_img" jdbcType="VARCHAR" property="headImg" />
  8. <result column="alias" jdbcType="VARCHAR" property="alias" />
  9. <result column="qrcode_url" jdbcType="VARCHAR" property="qrcodeUrl" />
  10. <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
  11. <result column="authorization_status" jdbcType="INTEGER" property="authorizationStatus" />
  12. </resultMap>
  13. <sql id="allColumns">
  14. `id`,`authorizer_appid`,`head_img`,`alias`,`qrcode_url`,`create_time`,`authorization_status`
  15. </sql>
  16. <sql id="dynamicWhereConditions">
  17. where 1 = 1
  18. <if test=" null != id ">
  19. and `id` = #{id}
  20. </if>
  21. <if test=" null != authorizerAppid ">
  22. and `authorizer_appid` like concat('%', #{authorizerAppid},'%')
  23. </if>
  24. <if test=" null != headImg ">
  25. and `head_img` like concat('%', #{headImg},'%')
  26. </if>
  27. <if test=" null != alias ">
  28. and `alias` like concat('%', #{alias},'%')
  29. </if>
  30. <if test=" null != qrcodeUrl ">
  31. and `qrcode_url` like concat('%', #{qrcodeUrl},'%')
  32. </if>
  33. <if test=" null != createTime ">
  34. and `create_time` = #{createTime}
  35. </if>
  36. <if test=" null != authorizationStatus ">
  37. and `authorization_status` = #{authorizationStatus}
  38. </if>
  39. <if test=" null != ids ">
  40. and id in
  41. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  42. #{idItem}
  43. </foreach>
  44. </if>
  45. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  46. </sql>
  47. <select id="findList" parameterType="com.iformall.domain.po.WxAuthorizerInfo" resultMap="BaseResultMap">
  48. select <include refid="allColumns" /> from wx_authorizer_info
  49. <include refid="dynamicWhereConditions" />
  50. </select>
  51. </mapper>