Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 

65 righe
3.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.iformall.mapper.WxMerchantTaxMapper">
  4. <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxMerchantTax">
  5. <id column="id" jdbcType="BIGINT" property="id" />
  6. <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
  7. <result column="merchant_id" jdbcType="BIGINT" property="merchantId" />
  8. <result column="taxpayer_type" jdbcType="INTEGER" property="taxpayerType" />
  9. <result column="tax_papers_type" jdbcType="INTEGER" property="taxPapersType" />
  10. <result column="tax_papers_number" jdbcType="VARCHAR" property="taxPapersNumber" />
  11. <result column="invoice_type" jdbcType="INTEGER" property="invoiceType" />
  12. <result column="invoice_buyer" jdbcType="VARCHAR" property="invoiceBuyer" />
  13. <result column="taxpayer_identify_number" jdbcType="VARCHAR" property="taxpayerIdentifyNumber" />
  14. <result column="invoice_address_phone" jdbcType="VARCHAR" property="invoiceAddressPhone" />
  15. <result column="bank_account_number" jdbcType="VARCHAR" property="bankAccountNumber" />
  16. <result column="bank_account_person" jdbcType="VARCHAR" property="bankAccountPerson" />
  17. <result column="bank_name" jdbcType="VARCHAR" property="bankName" />
  18. <result column="bank_account" jdbcType="VARCHAR" property="bankAccount" />
  19. <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
  20. <result column="update_date" jdbcType="TIMESTAMP" property="updateDate" />
  21. </resultMap>
  22. <sql id="allColumns">
  23. `id`,`tenant_id`,`merchant_id`,`taxpayer_type`,`tax_papers_type`,`tax_papers_number`,`invoice_type`,`invoice_buyer`,`taxpayer_identify_number`,`invoice_address_phone`,`bank_account_number`,`bank_account_person`,`bank_name`,`bank_account`,`create_date`,`update_date`
  24. </sql>
  25. <sql id="dynamicWhereConditions">
  26. where 1 = 1
  27. <if test=" null != id "> and `id` = #{id} </if>
  28. <if test=" null != tenantId "> and `tenant_id` = #{tenantId} </if>
  29. <if test=" null != merchantId "> and `merchant_id` = #{merchantId} </if>
  30. <if test=" null != taxpayerType "> and `taxpayer_type` = #{taxpayerType} </if>
  31. <if test=" null != taxPapersType "> and `tax_papers_type` = #{taxPapersType} </if>
  32. <if test=" null != taxPapersNumber "> and `tax_papers_number` = #{taxPapersNumber} </if>
  33. <if test=" null != invoiceType "> and `invoice_type` = #{invoiceType} </if>
  34. <if test=" null != invoiceBuyer "> and `invoice_buyer` = #{invoiceBuyer} </if>
  35. <if test=" null != taxpayerIdentifyNumber "> and `taxpayer_identify_number` = #{taxpayerIdentifyNumber} </if>
  36. <if test=" null != invoiceAddressPhone "> and `invoice_address_phone` = #{invoiceAddressPhone} </if>
  37. <if test=" null != bankAccountNumber "> and `bank_account_number` = #{bankAccountNumber} </if>
  38. <if test=" null != bankAccountPerson "> and `bank_account_person` = #{bankAccountPerson} </if>
  39. <if test=" null != bankName "> and `bank_name` = #{bankName} </if>
  40. <if test=" null != bankAccount "> and `bank_account` = #{bankAccount} </if>
  41. <if test=" null != createDate "> and `create_date` = #{createDate} </if>
  42. <if test=" null != updateDate "> and `update_date` = #{updateDate} </if>
  43. <if test=" null != ids ">
  44. and id in
  45. <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
  46. #{idItem}
  47. </foreach>
  48. </if>
  49. <if test=" null != sortColumns"> order by ${sortColumns} </if>
  50. </sql>
  51. <select id="findList" parameterType="com.iformall.domain.po.WxMerchantTax" resultMap="BaseResultMap">
  52. select <include refid="allColumns" /> from wx_merchant_tax
  53. <include refid="dynamicWhereConditions" />
  54. </select>
  55. </mapper>