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

57 строки
1.5 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.simple.mapper.WxBLogMapper">
  4. <resultMap id="BaseResultMap" type="com.simple.domain.po.WxBLog">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="data" jdbcType="VARCHAR" property="data" />
  8. <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
  9. </resultMap>
  10. <sql id="allColumns">
  11. `id`,`tenant_id`,`data`,`create_date`
  12. </sql>
  13. <sql id="dynamicWhereConditions">
  14. where 1 = 1
  15. <if test=" null != id ">
  16. and `id` = #{id}
  17. </if>
  18. <if test=" null != tenantId ">
  19. and `tenant_id` like concat('%', #{tenantId},'%')
  20. </if>
  21. <if test=" null != data ">
  22. and `data` like concat('%', #{data},'%')
  23. </if>
  24. <if test=" null != createDate ">
  25. and `create_date` = #{createDate}
  26. </if>
  27. <if test=" null != ids ">
  28. and id in
  29. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  30. #{idItem}
  31. </foreach>
  32. </if>
  33. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  34. </sql>
  35. <select id="findList" parameterType="com.simple.domain.po.WxBLog" resultMap="BaseResultMap">
  36. select <include refid="allColumns" /> from wx_b_log
  37. <include refid="dynamicWhereConditions" />
  38. </select>
  39. </mapper>