YseMerchantInfoMapper.xml 6.18 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.com.glsx.dj.platform.payment.mapper.YseMerchantInfoMapper">
  <resultMap id="BaseResultMap" type="cn.com.glsx.dj.platform.payment.model.YseMerchantInfo">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="INTEGER" property="id" />
    <result column="merchant_id" jdbcType="INTEGER" property="merchantId" />
    <result column="merchant_name" jdbcType="VARCHAR" property="merchantName" />
    <result column="account_type" jdbcType="TINYINT" property="accountType" />
    <result column="channel_type" jdbcType="TINYINT" property="channelType" />
    <result column="merchant_no" jdbcType="VARCHAR" property="merchantNo" />
    <result column="cust_type" jdbcType="CHAR" property="custType" />
    <result column="another_name" jdbcType="VARCHAR" property="anotherName" />
    <result column="cust_name" jdbcType="VARCHAR" property="custName" />
    <result column="province" jdbcType="VARCHAR" property="province" />
    <result column="province_code" jdbcType="VARCHAR" property="provinceCode" />
    <result column="city" jdbcType="VARCHAR" property="city" />
    <result column="city_code" jdbcType="VARCHAR" property="cityCode" />
    <result column="county" jdbcType="VARCHAR" property="county" />
    <result column="county_code" jdbcType="VARCHAR" property="countyCode" />
    <result column="company_addr" jdbcType="VARCHAR" property="companyAddr" />
    <result column="legal_name" jdbcType="VARCHAR" property="legalName" />
    <result column="legal_tel" jdbcType="VARCHAR" property="legalTel" />
    <result column="legal_cert_type" jdbcType="VARCHAR" property="legalCertType" />
    <result column="legal_cert_no" jdbcType="VARCHAR" property="legalCertNo" />
    <result column="legal_cert_start_date" jdbcType="VARCHAR" property="legalCertStartDate" />
    <result column="legal_cert_expire" jdbcType="VARCHAR" property="legalCertExpire" />
    <result column="legal_gender" jdbcType="TINYINT" property="legalGender" />
    <result column="legal_address" jdbcType="VARCHAR" property="legalAddress" />
    <result column="unincorporated_name" jdbcType="VARCHAR" property="unincorporatedName" />
    <result column="unincorporated_id" jdbcType="VARCHAR" property="unincorporatedId" />
    <result column="bus_licence_name" jdbcType="VARCHAR" property="busLicenceName" />
    <result column="bus_license" jdbcType="VARCHAR" property="busLicense" />
    <result column="bus_license_start_date" jdbcType="VARCHAR" property="busLicenseStartDate" />
    <result column="bus_license_expire" jdbcType="VARCHAR" property="busLicenseExpire" />
    <result column="bus_address" jdbcType="VARCHAR" property="busAddress" />
    <result column="contacts_name" jdbcType="VARCHAR" property="contactsName" />
    <result column="contacts_phone" jdbcType="VARCHAR" property="contactsPhone" />
    <result column="contacts_email" jdbcType="VARCHAR" property="contactsEmail" />
    <result column="contacts_addr" jdbcType="VARCHAR" property="contactsAddr" />
    <result column="org_no" jdbcType="VARCHAR" property="orgNo" />
    <result column="usercode" jdbcType="VARCHAR" property="usercode" />
    <result column="custid" jdbcType="VARCHAR" property="custid" />
    <result column="user_status" jdbcType="VARCHAR" property="userStatus" />
    <result column="cust_status" jdbcType="VARCHAR" property="custStatus" />
    <result column="note" jdbcType="VARCHAR" property="note" />
    <result column="audit_result_url" jdbcType="VARCHAR" property="auditResultUrl" />
    <result column="fail_message" jdbcType="VARCHAR" property="failMessage" />
    <result column="resp_code" property="respCode"/>
    <result column="oper_phone" jdbcType="VARCHAR" property="operPhone" />
    <result column="settlement_type" jdbcType="TINYINT" property="settlementType" />
    <result column="contract_type" jdbcType="TINYINT" property="contractType" />
    <result column="contractor_phone" jdbcType="VARCHAR" property="contractorPhone" />
    <result column="business_app_out_id" property="businessAppOutId"/>
    <result column="pay_platform" property="payPlatform" jdbcType="VARCHAR" />
    <result column="mch_id" property="mchId" jdbcType="VARCHAR" />
    <result column="surplus_notify_frequency" property="surplusNotifyFrequency"/>
    <result column="notify_status" property="notifyStatus"/>
    <result column="member_role" property="memberRole"/>
    <result column="auth_phone" property="authPhone"/>
    <result column="auth_per_cer_type" property="authPerCerType"/>
    <result column="created_by" jdbcType="VARCHAR" property="createdBy" />
    <result column="created_date" jdbcType="TIMESTAMP" property="createdDate" />
    <result column="updated_by" jdbcType="VARCHAR" property="updatedBy" />
    <result column="updated_date" jdbcType="TIMESTAMP" property="updatedDate" />
    <result column="deleted_flag" jdbcType="CHAR" property="deletedFlag" />
  </resultMap>
  <sql id="Base_Column_List">
    <!--
      WARNING - @mbg.generated
    -->
    id, merchant_id, merchant_name, account_type, channel_type, merchant_no, cust_type, 
    another_name, cust_name, province, province_code, city, city_code, county, county_code,company_addr, legal_name, legal_tel, legal_cert_type,
    legal_cert_no, legal_cert_start_date, legal_cert_expire, legal_gender, legal_address,
    unincorporated_name, unincorporated_id, bus_licence_name, bus_license, bus_license_start_date,
    bus_license_expire, bus_address, contacts_name, contacts_phone, contacts_email, contacts_addr, 
    org_no, usercode, custid, user_status, cust_status, note, audit_result_url, fail_message, resp_code,
    oper_phone, settlement_type, contract_type, contractor_phone, auth_per_cer_type,
    business_app_out_id,pay_platform,mch_id,surplus_notify_frequency,notify_status,member_role,auth_phone,
    created_by, created_date, 
    updated_by, updated_date, deleted_flag
  </sql>

  <select id="listUnconfirmed" resultMap="BaseResultMap">
  	select <include refid="Base_Column_List"/> from dj_payment_yse_merchant_info
  	where deleted_flag='N' and (user_status is null or user_status='待审核') and pay_platform = 'ysepay'
  	order by id asc
  </select>
</mapper>