|
- <?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="com.iformall.mapper.WxProfitSharingReceiverApplyMapper">
- <resultMap id="BaseResultMap" type="com.iformall.domain.po.WxProfitSharingReceiverApply">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="tenant_id" jdbcType="VARCHAR" property="tenantId" />
- <result column="parent_tenant_id" jdbcType="VARCHAR" property="parentTenantId"/>
- <result column="merchant_id" jdbcType="BIGINT" property="merchantId" />
- <result column="plat" jdbcType="INTEGER" property="plat" />
- <result column="out_request_no" jdbcType="VARCHAR" property="outRequestNo" />
- <result column="organization_type" jdbcType="INTEGER" property="organizationType" />
- <result column="finance_institution" jdbcType="INTEGER" property="financeInstitution" />
- <result column="business_license_info" jdbcType="VARCHAR" property="businessLicenseInfo" />
- <result column="certificate_info" jdbcType="VARCHAR" property="certificateInfo" />
- <result column="finance_institution_info" jdbcType="VARCHAR" property="financeInstitutionInfo" />
- <result column="id_holder_type" jdbcType="INTEGER" property="idHolderType" />
- <result column="id_doc_type" jdbcType="INTEGER" property="idDocType" />
- <result column="authorize_letter" jdbcType="VARCHAR" property="authorizeLetter" />
- <result column="authorize_letter_copy" jdbcType="VARCHAR" property="authorizeLetterCopy" />
- <result column="id_card_info" jdbcType="VARCHAR" property="idCardInfo" />
- <result column="id_doc_info" jdbcType="VARCHAR" property="idDocInfo" />
- <result column="owner" jdbcType="INTEGER" property="owner" />
- <result column="ubo_info_list" jdbcType="VARCHAR" property="uboInfoList" />
- <result column="account_info" jdbcType="VARCHAR" property="accountInfo" />
- <result column="contact_info" jdbcType="VARCHAR" property="contactInfo" />
- <result column="sales_scene_info" jdbcType="VARCHAR" property="salesSceneInfo" />
- <result column="settlement_info" jdbcType="VARCHAR" property="settlementInfo" />
- <result column="merchant_shortname" jdbcType="VARCHAR" property="merchantShortname" />
- <result column="service_phone" jdbcType="VARCHAR" property="servicePhone" />
- <result column="sales_info" jdbcType="VARCHAR" property="salesInfo" />
- <result column="qualifications" jdbcType="VARCHAR" property="qualifications" />
- <result column="addition_info" jdbcType="VARCHAR" property="additionInfo" />
- <result column="business_addition_pics" jdbcType="VARCHAR" property="businessAdditionPics" />
- <result column="business_addition_desc" jdbcType="VARCHAR" property="businessAdditionDesc" />
-
- <result column="applyment_id" jdbcType="VARCHAR" property="applymentId" />
- <result column="applyment_state" jdbcType="INTEGER" property="applymentState" />
- <result column="applyment_state_desc" jdbcType="VARCHAR" property="applymentStateDesc" />
- <result column="sign_state" jdbcType="INTEGER" property="signState" />
- <result column="sign_url" jdbcType="VARCHAR" property="signUrl" />
- <result column="sub_mchid" jdbcType="VARCHAR" property="subMchid" />
-
- <result column="account_validation" jdbcType="VARCHAR" property="accountValidation" />
- <result column="audit_detail" jdbcType="VARCHAR" property="auditDetail" />
- <result column="legal_validation_url" jdbcType="VARCHAR" property="legalValidationUrl" />
- <result column="legal_validation_qrcode" jdbcType="VARCHAR" property="legalValidationQrcode" />
-
- <result column="verify_result" jdbcType="INTEGER" property="verifyResult" />
- <result column="verify_fail_reason" jdbcType="VARCHAR" property="verifyFailReason" />
-
- <result column="status" jdbcType="INTEGER" property="status" />
-
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
- </resultMap>
-
- <sql id="allColumns">
- `id`,`tenant_id`,`parent_tenant_id`,`merchant_id`,`plat`,
- `out_request_no`,`organization_type`,`finance_institution`,`business_license_info`,`certificate_info`,`finance_institution_info`,
- `id_holder_type`,`id_doc_type`,`authorize_letter`,`authorize_letter_copy`,`id_card_info`,`id_doc_info`,
- `owner`,`ubo_info_list`,`account_info`,`contact_info`,`sales_scene_info`,`settlement_info`,
- `merchant_shortname`,`service_phone`,`sales_info`,`qualifications`,`addition_info`,`business_addition_pics`,`business_addition_desc`,
- `applyment_id`,`applyment_state`,`applyment_state_desc`,`sign_state`,`sign_url`,
- `sub_mchid`,`account_validation`,`audit_detail`,`legal_validation_url`,`legal_validation_qrcode`,
- `verify_result`,`verify_fail_reason`,`status`,`create_time`,`update_time`
- </sql>
-
- <sql id="dynamicWhereConditions">
- where 1 = 1
-
- <if test=" null != id ">
- and `id` = #{id}
- </if>
-
- <if test=" null != tenantId and '' != tenantId">
- and `tenant_id` = #{tenantId}
- </if>
- <if test=" null != parentTenantId and '' != parentTenantId">
- and `parent_tenant_id` = #{parentTenantId}
- </if>
-
- <if test=" null != merchantId ">
- and `merchant_id` = #{merchantId}
- </if>
-
- <if test=" null != plat ">
- and `plat` = #{plat}
- </if>
-
- <if test=" null != outRequestNo and '' != outRequestNo">
- and `out_request_no` = #{outRequestNo}
- </if>
-
- <if test=" null != organizationType ">
- and `organization_type` = #{organizationType}
- </if>
-
- <if test=" null != applymentId and '' != applymentId ">
- and `applyment_id` = #{applymentId}
- </if>
-
- <if test=" null != applymentState ">
- and `applyment_state` = #{applymentState}
- </if>
-
- <if test=" null != signState ">
- and `sign_state` = #{signState}
- </if>
-
- <if test=" null != verifyResult ">
- and `verify_result` = #{verifyResult}
- </if>
-
- <if test=" null != status ">
- and `status` = #{status}
- </if>
-
- <if test=" null != applymentStates ">
- and `applyment_state` in
- <foreach collection="applymentStates" index="index" item="idItem" open="(" separator="," close=")">
- #{idItem}
- </foreach>
- </if>
-
- <if test=" null != ids ">
- and id in
- <foreach collection="ids" index="index" item="idItem" open="(" separator="," close=")">
- #{idItem}
- </foreach>
- </if>
- <if test=" null != sortColumns"> order by ${sortColumns} </if>
- </sql>
-
- <select id="findList" parameterType="com.iformall.domain.po.WxProfitSharingReceiverApply" resultMap="BaseResultMap">
- select
- <include refid="allColumns"/>
- from wx_profit_sharing_receiver_apply
- <include refid="dynamicWhereConditions"/>
- </select>
-
- <select id="findResultStateById" parameterType="Long" resultMap="BaseResultMap">
- select
- `id`,`tenant_id`,`parent_tenant_id`,`merchant_id`,`plat`,`out_request_no`,
- `applyment_id`,`applyment_state`,`applyment_state_desc`,`sign_state`,`sign_url`,
- `sub_mchid`,`account_validation`,`audit_detail`,`legal_validation_url`,`legal_validation_qrcode`,
- `verify_result`,`verify_fail_reason`,`status`,`create_time`,`update_time`
- from wx_profit_sharing_receiver_apply
- where `id` = #{id}
- </select>
-
- <select id="findListByApplymentState" parameterType="com.iformall.domain.po.WxProfitSharingReceiverApply" resultMap="BaseResultMap">
- select
- `id`,`tenant_id`,`parent_tenant_id`,`merchant_id`,`plat`,`out_request_no`,`applyment_id`,`applyment_state`
- from wx_profit_sharing_receiver_apply
- <include refid="dynamicWhereConditions"/>
- </select>
-
- <select id="findListByVerifyResult" parameterType="com.iformall.domain.po.WxProfitSharingReceiverApply" resultMap="BaseResultMap">
- select
- `id`,`tenant_id`,`parent_tenant_id`,`merchant_id`,`plat`,`out_request_no`,`applyment_id`,`sub_mchid`,`verify_result`
- from wx_profit_sharing_receiver_apply
- <include refid="dynamicWhereConditions"/>
- </select>
-
- </mapper>
|