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

62 строки
2.8 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_code" jdbcType="VARCHAR" property="modelCode" />
  13. <result column="type" jdbcType="INTEGER" property="type" />
  14. <result column="email_bg_img" property="emailBgImg" />
  15. <result column="open" property="open" />
  16. <result column="msg_type" property="msgType" />
  17. <result column="role_type" property="roleType" />
  18. </resultMap>
  19. <sql id="allColumns">
  20. `id`,`name`,`signature`,`content`,`createtime`,`status`,`minutes`,`model_code`,`type`,email_bg_img,`open`,msg_type,role_type
  21. </sql>
  22. <sql id="dynamicWhereConditions">
  23. where 1 = 1
  24. <if test=" null != id "> and `id` = #{id} </if>
  25. <if test=" null != name "> and `name` = #{name} </if>
  26. <if test=" null != signature "> and `signature` = #{signature} </if>
  27. <if test=" null != content "> and `content` = #{content} </if>
  28. <if test=" null != createtime "> and `createtime` = #{createtime} </if>
  29. <if test=" null != status "> and `status` = #{status} </if>
  30. <if test=" null != minutes "> and `minutes` = #{minutes} </if>
  31. <if test=" null != modelCode "> and `model_code` = #{modelCode} </if>
  32. <if test=" null != type "> and `type` = #{type} </if>
  33. <if test=" null != open "> and `open` = #{open} </if>
  34. <if test=" null != msgType "> and `msg_type` = #{msgType} </if>
  35. <if test=" null != roleType "> and `role_type` = #{roleType} </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.WxMsgValidationcodeModel" resultMap="BaseResultMap">
  45. select <include refid="allColumns" /> from wx_msg_validationcode_model
  46. <include refid="dynamicWhereConditions" />
  47. </select>
  48. <update id="updateByCode" parameterType="com.iformall.domain.po.WxMsgValidationcodeModel">
  49. update wx_msg_validationcode_model set status=#{status} where `model_code` = #{modelCode}
  50. </update>
  51. <select id="wxMsgValidationcodeModelInit" parameterType="String">
  52. ${initSql}
  53. </select>
  54. </mapper>