|
|
@@ -16,10 +16,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="isAuthentication" column="is_authentication" />
|
|
|
<result property="orgAttestationTime" column="org_attestation_time" />
|
|
|
<result property="receiveUrlMobileNo" column="receive_url_mobile_no" />
|
|
|
+ <result property="type" column="type" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectCustomersExtVo">
|
|
|
- select chains_code, creator, customers_name, org_id, id_type, id_number, org_legalId_number, org_legal_name, is_authentication, org_attestation_time,receive_url_mobile_no from customers_ext
|
|
|
+ select chains_code, creator, customers_name, org_id, id_type, id_number, org_legalId_number, org_legal_name, is_authentication, org_attestation_time,receive_url_mobile_no,type from customers_ext
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectCustomersExtList" parameterType="CustomersExt" resultMap="CustomersExtResult">
|
|
|
@@ -48,6 +49,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
where chains_code in (SELECT main_customer_code FROM meta_relation_ship_diy WHERE main_customer_name = #{chainsCode}) limit 1
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
+ <select id="selectCustomersExt" parameterType="String" resultMap="CustomersExtResult">
|
|
|
+ <include refid="selectCustomersExtVo"/>
|
|
|
+ where chains_code in (SELECT main_customer_code FROM meta_relation_ship_diy WHERE customer_code = #{chainsCode})
|
|
|
+ </select>
|
|
|
+
|
|
|
<!--根据订单id关联订单基础信息表查询经销商注册id-->
|
|
|
<select id="selectOrgIdByOrderId" resultType="java.lang.String">
|
|
|
SELECT
|
|
|
@@ -84,6 +91,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orgLegalName != null and orgLegalName != ''">org_legal_name,</if>
|
|
|
<if test="isAuthentication != null and isAuthentication != ''">is_authentication,</if>
|
|
|
<if test="receiveUrlMobileNo != null and receiveUrlMobileNo != ''">receive_url_mobile_no,</if>
|
|
|
+ <if test="orgAttestationTime != null ">org_attestation_time,</if>
|
|
|
+ <if test="createTime != null ">create_time,</if>
|
|
|
+ <if test="type != null and type != ''">type,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="chainsCode != null and chainsCode != ''">#{chainsCode},</if>
|
|
|
@@ -96,6 +106,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="orgLegalName != null and orgLegalName != ''">#{orgLegalName},</if>
|
|
|
<if test="isAuthentication != null and isAuthentication != ''">#{isAuthentication},</if>
|
|
|
<if test="receiveUrlMobileNo != null and receiveUrlMobileNo != ''">#{receiveUrlMobileNo},</if>
|
|
|
+ <if test="orgAttestationTime != null ">#{orgAttestationTime},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="type != null and type != ''">#{type},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|