后台服务
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

WxMsgValidationcodeMapper.xml 2.4 KiB

2 anni fa
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. </resultMap>
  16. <sql id="allColumns">
  17. `id`,`tenant_id`,`parent_tenant_id`,`phone`,`expiretime`,`createtime`,`type`,`msg`,`signature`,`code`
  18. </sql>
  19. <sql id="dynamicWhereConditions">
  20. where 1 = 1
  21. <if test=" null != id "> and `id` = #{id} </if>
  22. <if test=" null != tenantId and '' != tenantId">
  23. and `tenant_id` = #{tenantId}
  24. </if>
  25. <if test=" null != parentTenantId and '' != parentTenantId">
  26. and `parent_tenant_id` = #{parentTenantId}
  27. </if>
  28. <if test=" null != phone "> and `phone` = #{phone} </if>
  29. <if test=" null != expiretime ">and `expiretime` = #{expiretime}</if>
  30. <if test=" null != createtime ">and `createtime` = #{createtime}</if>
  31. <if test=" null != type "> and `type` = #{type} </if>
  32. <if test=" null != msg "> and `msg` = #{msg} </if>
  33. <if test=" null != signature ">and `signature` = #{signature}</if>
  34. <if test=" null != code ">and `code` = #{code}</if>
  35. <if test=" null != createtimeStr ">and date_format(`createtime`,'%Y-%m-%d') = #{createtimeStr}</if>
  36. <if test=" null != ids ">
  37. and id in
  38. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  39. #{idItem}
  40. </foreach>
  41. </if>
  42. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  43. </sql>
  44. <select id="findList" parameterType="com.iformall.domain.po.WxMsgValidationcode" resultMap="BaseResultMap">
  45. select
  46. <include refid="allColumns" />
  47. from wx_msg_validationcode
  48. <include refid="dynamicWhereConditions" />
  49. </select>
  50. </mapper>