后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 rivejä
2.0 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.WxPayAccountBillMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxPayAccountBill">
  5. <id column="id" jdbcType="BIGINT" property="id"/>
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId" />
  8. <result column="bank_account_name" jdbcType="VARCHAR" property="bankAccountName"/>
  9. <result column="bank_card_id" jdbcType="VARCHAR" property="bankCardId"/>
  10. <result column="social_credit_code" jdbcType="VARCHAR" property="socialCreditCode"/>
  11. <result column="bank_name" jdbcType="VARCHAR" property="bankName"/>
  12. <result column="service_charge_rate" property="serviceChargeRate"/>
  13. </resultMap>
  14. <sql id="allColumns">
  15. `id`,`tenant_id`,`parent_tenant_id`,`bank_account_name`,`bank_card_id`,`social_credit_code`,`bank_name`,`service_charge_rate`
  16. </sql>
  17. <sql id="dynamicWhereConditions">
  18. where 1 = 1
  19. <if test=" null != id ">
  20. and `id` = #{id}
  21. </if>
  22. <if test=" null != tenantId and '' != tenantId">
  23. and `tenant_id` = #{tenantId}
  24. </if>
  25. <if test=" null != parentTenantId and '' != parentTenantId">
  26. and `parent_tenant_id` = #{parentTenantId}
  27. </if>
  28. <if test=" null != ids ">
  29. and id in
  30. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  31. #{idItem}
  32. </foreach>
  33. </if>
  34. <if test=" null != sortColumns">order by ${sortColumns}</if>
  35. </sql>
  36. <select id="findList" parameterType="com.iformall.domain.po.WxPayAccountBill" resultMap="BaseResultMap">
  37. select
  38. <include refid="allColumns"/>
  39. from wx_pay_account_bill
  40. <include refid="dynamicWhereConditions"/>
  41. </select>
  42. </mapper>