TenantMemberMapper.xml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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.yonge.cooleshow.biz.dal.mapper.TenantMemberMapper">
  4. <!-- 表字段 -->
  5. <sql id="baseColumns">
  6. t.id_ AS id
  7. , t.payer_name_ AS payerName
  8. , t.app_id_ AS appId
  9. , t.request_no_ AS requestNo
  10. , t.tenant_id_ AS tenantId
  11. , t.name_ AS name
  12. , t.member_id_ AS memberId
  13. , t.prov_code_ AS provCode
  14. , t.area_code_ AS areaCode
  15. , t.district_code_ AS districtCode
  16. , t.address_ AS address
  17. , t.social_credit_code_ AS socialCreditCode
  18. , t.social_credit_code_expires_ AS socialCreditCodeExpires
  19. , t.business_scope_ AS businessScope
  20. , t.legal_person_ AS legalPerson
  21. , t.legal_licence_type_ AS legalLicenceType
  22. , t.legal_cert_id_ AS legalCertId
  23. , t.legal_cert_id_expires_ AS legalCertIdExpires
  24. , t.legal_mp_ AS legalMp
  25. , t.zip_code_ AS zipCode
  26. , t.card_no_ AS cardNo
  27. , t.bank_code_ AS bankCode
  28. , t.settle_account_id_ AS settleAccountId
  29. , t.memo_ AS memo
  30. , t.status_ AS status
  31. , t.month_max_receipt_ AS monthMaxReceipt
  32. , t.bank_acct_type_ AS bankAcctType
  33. , t.card_name_ AS cardName
  34. , t.contact_email_ AS contactEmail
  35. , t.contact_licence_no_ AS contactLicenceNo
  36. , t.contact_name_ AS contactName
  37. , t.contact_mobile_ AS contactMobile
  38. , t.create_time_ AS createTime
  39. , t.update_time_ AS updateTime
  40. </sql>
  41. <select id="selectPage" resultType="com.yonge.cooleshow.biz.dal.wrapper.TenantMemberWrapper$TenantMember">
  42. SELECT
  43. <include refid="baseColumns" />
  44. FROM tenant_member t
  45. <where>
  46. <if test="param.memberId != null and param.memberId != ''">
  47. and t.member_id_ like concat('%',#{param.memberId},'%')
  48. </if>
  49. <if test="param.name != null and param.name != ''">
  50. and t.name_ like concat('%',#{param.name},'%')
  51. </if>
  52. <if test="param.payerType != null">
  53. and t.payer_type_ = #{param.payerType}
  54. </if>
  55. <if test="param.status != null">
  56. and t.status_ = #{param.status}
  57. </if>
  58. </where>
  59. </select>
  60. </mapper>