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

62 строки
2.7 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.WxMsgValidationcodeModelMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.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. <result column="email_bg_img" property="emailBgImg" />
  16. <result column="open" property="open" />
  17. <result column="msg_type" property="msgType" />
  18. <result column="role_type" property="roleType" />
  19. </resultMap>
  20. <sql id="allColumns">
  21. `id`,`name`,`signature`,`content`,`createtime`,`status`,`minutes`,`model_id`,`type`,`tenant_id`,email_bg_img,`open`,msg_type,role_type
  22. </sql>
  23. <sql id="dynamicWhereConditions">
  24. where 1 = 1
  25. <if test=" null != id "> and `id` = #{id} </if>
  26. <if test=" null != name "> and `name` = #{name} </if>
  27. <if test=" null != signature "> and `signature` = #{signature} </if>
  28. <if test=" null != content "> and `content` = #{content} </if>
  29. <if test=" null != createtime "> and `createtime` = #{createtime} </if>
  30. <if test=" null != status "> and `status` = #{status} </if>
  31. <if test=" null != minutes "> and `minutes` = #{minutes} </if>
  32. <if test=" null != modelId "> and `model_id` = #{modelId} </if>
  33. <if test=" null != type "> and `type` = #{type} </if>
  34. <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if>
  35. <if test=" null != open "> and `open` = #{open} </if>
  36. <if test=" null != msgType "> and `msg_type` = #{msgType} </if>
  37. <if test=" null != roleType "> and `role_type` = #{roleType} </if>
  38. <if test=" null != ids ">
  39. and id in
  40. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  41. #{idItem}
  42. </foreach>
  43. </if>
  44. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  45. </sql>
  46. <select id="findList" parameterType="com.iformall.domain.po.WxMsgValidationcodeModel" resultMap="BaseResultMap">
  47. select <include refid="allColumns" /> from wx_msg_validationcode_model
  48. <include refid="dynamicWhereConditions" />
  49. </select>
  50. </mapper>