25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 

63 satır
1.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.simple.mapper.WxPayAccountMapper">
  4. <resultMap id="BaseResultMap" type="com.simple.domain.po.WxPayAccount">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="mch_id" jdbcType="VARCHAR" property="mchId" />
  7. <result column="api_key" jdbcType="VARCHAR" property="apiKey" />
  8. <result column="notify_url" jdbcType="VARCHAR" property="notifyUrl" />
  9. <result column="cert_path" jdbcType="VARCHAR" property="certPath" />
  10. </resultMap>
  11. <sql id="allColumns">
  12. `id`,`mch_id`,`api_key`,`notify_url`,`cert_path`
  13. </sql>
  14. <sql id="dynamicWhereConditions">
  15. where 1 = 1
  16. <if test=" null != id ">
  17. and `id` = #{id}
  18. </if>
  19. <if test=" null != mchId ">
  20. and `mch_id` like concat('%', #{mchId},'%')
  21. </if>
  22. <if test=" null != apiKey ">
  23. and `api_key` like concat('%', #{apiKey},'%')
  24. </if>
  25. <if test=" null != notifyUrl ">
  26. and `notify_url` like concat('%', #{notifyUrl},'%')
  27. </if>
  28. <if test=" null != certPath ">
  29. and `cert_path` like concat('%', #{certPath},'%')
  30. </if>
  31. <if test=" null != ids ">
  32. and id in
  33. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  34. #{idItem}
  35. </foreach>
  36. </if>
  37. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  38. </sql>
  39. <select id="findList" parameterType="com.simple.domain.po.WxPayAccount" resultMap="BaseResultMap">
  40. select <include refid="allColumns" /> from wx_pay_account
  41. <include refid="dynamicWhereConditions" />
  42. </select>
  43. </mapper>