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

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