Вы не можете выбрать более 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.iformall.mapper.WxMsgSignatureMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxMsgSignature">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="name" jdbcType="VARCHAR" property="name" />
  8. <result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
  9. </resultMap>
  10. <sql id="allColumns">
  11. `id`,`tenant_id`,`name`,`createtime`
  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` = #{tenantId}
  20. </if>
  21. <if test=" null != name ">
  22. and `name` like concat('%', #{name},'%')
  23. </if>
  24. <if test=" null != createtime ">
  25. and `createtime` = #{createtime}
  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.iformall.domain.po.WxMsgSignature" resultMap="BaseResultMap">
  36. select <include refid="allColumns" /> from wx_msg_signature
  37. <include refid="dynamicWhereConditions" />
  38. </select>
  39. </mapper>