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

122 строки
3.4 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.WxMsgConfigMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxMsgConfig">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="secret" jdbcType="VARCHAR" property="secret" />
  8. <result column="publickey" jdbcType="VARCHAR" property="publickey" />
  9. <result column="bid" jdbcType="VARCHAR" property="bid" />
  10. <result column="recharge" jdbcType="BIGINT" property="recharge" />
  11. <result column="remains" jdbcType="BIGINT" property="remains" />
  12. <result column="total" jdbcType="BIGINT" property="total" />
  13. <result column="account" jdbcType="VARCHAR" property="account" />
  14. <result column="reminderstatus" jdbcType="INTEGER" property="reminderstatus" />
  15. <result column="reminder" jdbcType="BIGINT" property="reminder" />
  16. <result column="phone" jdbcType="VARCHAR" property="phone" />
  17. <result column="notifyurl" jdbcType="VARCHAR" property="notifyurl" />
  18. <result column="modelnotifyurl" jdbcType="VARCHAR" property="modelnotifyurl" />
  19. <result column="verifynotifyurl" jdbcType="VARCHAR" property="verifynotifyurl" />
  20. <result column="appid" jdbcType="VARCHAR" property="appid" />
  21. </resultMap>
  22. <sql id="allColumns">
  23. `id`,`tenant_id`,`secret`,`publickey`,`bid`,`recharge`,`remains`,`total`,`account`,`reminderstatus`,`reminder`,`phone`,`notifyurl`,`modelnotifyurl`,`verifynotifyurl`,`appid`
  24. </sql>
  25. <sql id="dynamicWhereConditions">
  26. where 1 = 1
  27. <if test=" null != id ">
  28. and `id` = #{id}
  29. </if>
  30. <if test=" null != tenantId ">
  31. and `tenant_id` = #{tenantId}
  32. </if>
  33. <if test=" null != secret ">
  34. and `secret` like concat('%', #{secret},'%')
  35. </if>
  36. <if test=" null != publickey ">
  37. and `publickey` like concat('%', #{publickey},'%')
  38. </if>
  39. <if test=" null != bid ">
  40. and `bid` = #{bid}
  41. </if>
  42. <if test=" null != recharge ">
  43. and `recharge` = #{recharge}
  44. </if>
  45. <if test=" null != remains ">
  46. and `remains` = #{remains}
  47. </if>
  48. <if test=" null != total ">
  49. and `total` = #{total}
  50. </if>
  51. <if test=" null != account ">
  52. and `account` like concat('%', #{account},'%')
  53. </if>
  54. <if test=" null != reminderstatus ">
  55. and `reminderstatus` = #{reminderstatus}
  56. </if>
  57. <if test=" null != reminder ">
  58. and `reminder` = #{reminder}
  59. </if>
  60. <if test=" null != phone ">
  61. and `phone` like concat('%', #{phone},'%')
  62. </if>
  63. <if test=" null != notifyurl ">
  64. and `notifyurl` like concat('%', #{notifyurl},'%')
  65. </if>
  66. <if test=" null != appid ">
  67. and `appid` = #{appid}
  68. </if>
  69. <if test=" null != ids ">
  70. and id in
  71. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  72. #{idItem}
  73. </foreach>
  74. </if>
  75. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  76. </sql>
  77. <select id="findList" parameterType="com.iformall.domain.po.WxMsgConfig" resultMap="BaseResultMap">
  78. select <include refid="allColumns" /> from wx_msg_config
  79. <include refid="dynamicWhereConditions" />
  80. </select>
  81. </mapper>