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

115 строки
4.1 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.WxAppinfoMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxAppinfo">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId"/>
  7. <result column="app_id" jdbcType="VARCHAR" property="appId"/>
  8. <result column="parent_app_id" jdbcType="VARCHAR" property="parentAppId"/>
  9. <result column="name" jdbcType="VARCHAR" property="name"/>
  10. <result column="secret" jdbcType="VARCHAR" property="secret"/>
  11. <result column="token" jdbcType="VARCHAR" property="token"/>
  12. <result column="aes_key" jdbcType="VARCHAR" property="aesKey"/>
  13. <result column="msg_data_format" jdbcType="VARCHAR" property="msgDataFormat"/>
  14. <result column="access_token" jdbcType="VARCHAR" property="accessToken"/>
  15. <result column="last_token_time" jdbcType="TIMESTAMP" property="lastTokenTime"/>
  16. <result column="expires_in" jdbcType="INTEGER" property="expiresIn"/>
  17. <result column="pay_id" jdbcType="BIGINT" property="payId"/>
  18. <result column="type" jdbcType="INTEGER" property="type"/>
  19. <result column="pay_bill_id" jdbcType="BIGINT" property="payBillId"/>
  20. <result column="plat" jdbcType="INTEGER" property="plat"/>
  21. <!-- <result column="group_support" jdbcType="INTEGER" property="groupSupport"/>-->
  22. </resultMap>
  23. <sql id="allColumns">
  24. `id`,`tenant_id`,`app_id`,`parent_app_id`,`name`,
  25. `secret`,`token`,`aes_key`,`msg_data_format`,`access_token`,`last_token_time`,`expires_in`,
  26. `pay_id`,`type`,`pay_bill_id`,`plat`
  27. </sql>
  28. <sql id="dynamicWhereConditions">
  29. where 1 = 1
  30. <if test=" null != id ">
  31. and `id` = #{id}
  32. </if>
  33. <if test=" null != tenantId ">
  34. and `tenant_id` = #{tenantId}
  35. </if>
  36. <if test=" null != appId ">
  37. and `app_id` = #{appId}
  38. </if>
  39. <if test=" null != parentAppId ">
  40. and `parent_app_id` like concat('%', #{parentAppId},'%')
  41. </if>
  42. <if test=" null != name ">
  43. and `name` like concat('%', #{name},'%')
  44. </if>
  45. <if test=" null != secret ">
  46. and `secret` like concat('%', #{secret},'%')
  47. </if>
  48. <if test=" null != token ">
  49. and `token` like concat('%', #{token},'%')
  50. </if>
  51. <if test=" null != aesKey ">
  52. and `aes_key` like concat('%', #{aesKey},'%')
  53. </if>
  54. <if test=" null != msgDataFormat ">
  55. and `msg_data_format` like concat('%', #{msgDataFormat},'%')
  56. </if>
  57. <if test=" null != accessToken ">
  58. and `access_token` like concat('%', #{accessToken},'%')
  59. </if>
  60. <if test=" null != lastTokenTime ">
  61. and `last_token_time` = #{lastTokenTime}
  62. </if>
  63. <if test=" null != expiresIn ">
  64. and `expires_in` = #{expiresIn}
  65. </if>
  66. <if test=" null != payId ">
  67. and `pay_id` = #{payId}
  68. </if>
  69. <if test=" null != type ">
  70. and `type` = #{type}
  71. </if>
  72. <if test=" null != payBillId ">
  73. and `pay_bill_id` = #{payBillId}
  74. </if>
  75. <if test=" null != plat ">
  76. and `plat` = #{plat}
  77. </if>
  78. <if test=" null != ids ">
  79. and id in
  80. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  81. #{idItem}
  82. </foreach>
  83. </if>
  84. <if test=" null != sortColumns">order by ${sortColumns}</if>
  85. </sql>
  86. <select id="findList" parameterType="com.iformall.domain.po.WxAppinfo" resultMap="BaseResultMap">
  87. select
  88. <include refid="allColumns"/>
  89. from wx_appinfo
  90. <include refid="dynamicWhereConditions"/>
  91. </select>
  92. <select id="findByAppId" parameterType="java.lang.String" resultMap="BaseResultMap">
  93. SELECT *
  94. FROM wx_appinfo
  95. WHERE `app_id` = #{appId}
  96. </select>
  97. </mapper>