后台服务
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

73 řádky
3.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.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="model_code" jdbcType="VARCHAR" property="modelCode" />
  14. <result column="type" jdbcType="INTEGER" property="type" />
  15. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  16. <result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId" />
  17. <result column="email_bg_img" property="emailBgImg" />
  18. <result column="open" property="open" />
  19. <result column="msg_type" property="msgType" />
  20. <result column="role_type" property="roleType" />
  21. </resultMap>
  22. <sql id="allColumns">
  23. `id`,`name`,`signature`,`content`,`createtime`,`status`,`minutes`,`model_id`,`model_code`,`type`,`tenant_id`,`parent_tenant_id`,email_bg_img,`open`,msg_type,role_type
  24. </sql>
  25. <sql id="dynamicWhereConditions">
  26. where 1 = 1
  27. <if test=" null != id "> and `id` = #{id} </if>
  28. <if test=" null != name "> and `name` = #{name} </if>
  29. <if test=" null != signature "> and `signature` = #{signature} </if>
  30. <if test=" null != content "> and `content` = #{content} </if>
  31. <if test=" null != createtime "> and `createtime` = #{createtime} </if>
  32. <if test=" null != status "> and `status` = #{status} </if>
  33. <if test=" null != minutes "> and `minutes` = #{minutes} </if>
  34. <if test=" null != modelId "> and `model_id` = #{modelId} </if>
  35. <if test=" null != modelCode "> and `model_code` = #{modelCode} </if>
  36. <if test=" null != type "> and `type` = #{type} </if>
  37. <if test=" null != tenantId and '' != tenantId">
  38. and `tenant_id` = #{tenantId}
  39. </if>
  40. <if test=" null != parentTenantId and '' != parentTenantId">
  41. and `parent_tenant_id` = #{parentTenantId}
  42. </if>
  43. <if test=" null != open "> and `open` = #{open} </if>
  44. <if test=" null != msgType "> and `msg_type` = #{msgType} </if>
  45. <if test=" null != roleType "> and `role_type` = #{roleType} </if>
  46. <if test=" null != ids ">
  47. and id in
  48. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  49. #{idItem}
  50. </foreach>
  51. </if>
  52. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  53. </sql>
  54. <select id="findList" parameterType="com.iformall.domain.po.WxMsgValidationcodeModel" resultMap="BaseResultMap">
  55. select <include refid="allColumns" /> from wx_msg_validationcode_model
  56. <include refid="dynamicWhereConditions" />
  57. </select>
  58. <update id="updateByCode" parameterType="com.iformall.domain.po.WxMsgValidationcodeModel">
  59. update wx_msg_validationcode_model set status=#{status} where `model_code` = #{modelCode}
  60. </update>
  61. <select id="wxMsgValidationcodeModelInit" parameterType="String">
  62. ${initSql}
  63. </select>
  64. </mapper>