You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

54 lines
2.3 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.WxMsgValidationcodeModelMapper">
  4. <resultMap id="BaseResultMap" type="com.simple.domain.po.WxMsgValidationcodeModel">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="name" jdbcType="VARCHAR" property="name" />
  7. <result column="signature" jdbcType="VARCHAR" property="signature" />
  8. <result column="content" jdbcType="VARCHAR" property="content" />
  9. <result column="createtime" jdbcType="TIMESTAMP" property="createtime" />
  10. <result column="status" jdbcType="INTEGER" property="status" />
  11. <result column="minutes" jdbcType="INTEGER" property="minutes" />
  12. <result column="model_id" jdbcType="INTEGER" property="modelId" />
  13. <result column="type" jdbcType="INTEGER" property="type" />
  14. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  15. </resultMap>
  16. <sql id="allColumns">
  17. `id`,`name`,`signature`,`content`,`createtime`,`status`,`minutes`,`model_id`,`type`,`tenant_id`
  18. </sql>
  19. <sql id="dynamicWhereConditions">
  20. where 1 = 1
  21. <if test=" null != id "> and `id` = #{id} </if>
  22. <if test=" null != name "> and `name` = #{name} </if>
  23. <if test=" null != signature "> and `signature` = #{signature} </if>
  24. <if test=" null != content "> and `content` = #{content} </if>
  25. <if test=" null != createtime "> and `createtime` = #{createtime} </if>
  26. <if test=" null != status "> and `status` = #{status} </if>
  27. <if test=" null != minutes "> and `minutes` = #{minutes} </if>
  28. <if test=" null != modelId "> and `model_id` = #{modelId} </if>
  29. <if test=" null != type "> and `type` = #{type} </if>
  30. <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if>
  31. <if test=" null != ids ">
  32. and id in
  33. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  34. #{idItem}
  35. </foreach>
  36. </if>
  37. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  38. </sql>
  39. <select id="findList" parameterType="com.simple.domain.po.WxMsgValidationcodeModel" resultMap="BaseResultMap">
  40. select <include refid="allColumns" /> from wx_msg_validationcode_model
  41. <include refid="dynamicWhereConditions" />
  42. </select>
  43. </mapper>