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

53 строки
2.2 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.WxMsgValidationcodeMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxMsgValidationcode">
  5. <id column="id" jdbcType="INTEGER" property="id" />
  6. <result column="phone" jdbcType="VARCHAR" property="phone" />
  7. <result column="expiretime" jdbcType="TIMESTAMP" property="expiretime" />
  8. <result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
  9. <result column="type" jdbcType="INTEGER" property="type" />
  10. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  11. <result column="msg" jdbcType="VARCHAR" property="msg" />
  12. <result column="signature" jdbcType="VARCHAR" property="signature" />
  13. <result column="code" jdbcType="VARCHAR" property="code" />
  14. <result column="appid" jdbcType="VARCHAR" property="appid" />
  15. </resultMap>
  16. <sql id="allColumns">
  17. `id`,`phone`,`expiretime`,`createtime`,`type`,`tenant_id`,`msg`,`signature`,`code`,`appid`
  18. </sql>
  19. <sql id="dynamicWhereConditions">
  20. where 1 = 1
  21. <if test=" null != id "> and `id` = #{id} </if>
  22. <if test=" null != phone "> and `phone` = #{phone} </if>
  23. <if test=" null != expiretime "> and `expiretime` = #{expiretime} </if>
  24. <if test=" null != createtime "> and `createtime` = #{createtime} </if>
  25. <if test=" null != type "> and `type` = #{type} </if>
  26. <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if>
  27. <if test=" null != msg "> and `msg` = #{msg} </if>
  28. <if test=" null != signature "> and `signature` = #{signature} </if>
  29. <if test=" null != code "> and `code` = #{code} </if>
  30. <if test=" null != ids ">
  31. and id in
  32. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  33. #{idItem}
  34. </foreach>
  35. </if>
  36. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  37. </sql>
  38. <select id="findList" parameterType="com.iformall.domain.po.WxMsgValidationcode" resultMap="BaseResultMap">
  39. select <include refid="allColumns" /> from wx_msg_validationcode
  40. <include refid="dynamicWhereConditions" />
  41. </select>
  42. </mapper>