|
@@ -1,25 +1,24 @@
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<?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" >
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
-<mapper namespace="com.ygj.yuemum.dao.distributionchannel.DcIntroducerDao" >
|
|
|
|
|
|
+<mapper namespace="com.ygj.yuemum.dao.distributionchannel.DcIntroducerDao">
|
|
|
|
|
|
- <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.distributionchannel.DcIntroducer" >
|
|
|
|
- <result column="id" property="id" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_phone" property="wv_phone" jdbcType="VARCHAR" />
|
|
|
|
- <result column="wv_gradeid" property="wv_gradeid" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_Introduction_total" property="wv_Introduction_total" jdbcType="DECIMAL" />
|
|
|
|
- <result column="wv_withdraw_total" property="wv_withdraw_total" jdbcType="DECIMAL" />
|
|
|
|
- <result column="wv_Introduction_count" property="wv_Introduction_count" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_order_count" property="wv_order_count" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_extract_count" property="wv_extract_count" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_qrcode" property="wv_qrcode" jdbcType="VARCHAR" />
|
|
|
|
- <result column="wv_people_count" property="wv_people_count" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_register_count" property="wv_register_count" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_contract_count" property="wv_contract_count" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_finish_count" property="wv_finish_count" jdbcType="INTEGER" />
|
|
|
|
- <result column="wv_consultant" property="wv_consultant" jdbcType="VARCHAR" />
|
|
|
|
- <result column="wv_account_number" property="wv_account_number" jdbcType="VARCHAR" />
|
|
|
|
- <result column="wv_account_bank" property="wv_account_bank" jdbcType="VARCHAR" />
|
|
|
|
- <result column="wv_account_number_path" property="wv_account_number_path" jdbcType="VARCHAR" />
|
|
|
|
|
|
+ <resultMap id="BaseResultMap" type="com.ygj.yuemum.domain.distributionchannel.DcIntroducer">
|
|
|
|
+ <result column="id" property="id" jdbcType="INTEGER"/>
|
|
|
|
+ <result column="wv_phone" property="wv_phone" jdbcType="VARCHAR"/>
|
|
|
|
+ <result column="wv_gradeid" property="wv_gradeid" jdbcType="INTEGER"/>
|
|
|
|
+ <result column="wv_Introduction_total" property="wv_Introduction_total" jdbcType="DECIMAL"/>
|
|
|
|
+ <result column="wv_withdraw_total" property="wv_withdraw_total" jdbcType="DECIMAL"/>
|
|
|
|
+ <result column="wv_Introduction_count" property="wv_Introduction_count" jdbcType="INTEGER"/>
|
|
|
|
+ <result column="wv_extract_count" property="wv_extract_count" jdbcType="INTEGER"/>
|
|
|
|
+ <result column="wv_qrcode" property="wv_qrcode" jdbcType="VARCHAR"/>
|
|
|
|
+ <result column="wv_people_count" property="wv_people_count" jdbcType="INTEGER"/>
|
|
|
|
+ <result column="wv_register_count" property="wv_register_count" jdbcType="INTEGER"/>
|
|
|
|
+ <result column="wv_contract_count" property="wv_contract_count" jdbcType="INTEGER"/>
|
|
|
|
+ <result column="wv_finish_count" property="wv_finish_count" jdbcType="INTEGER"/>
|
|
|
|
+ <result column="wv_consultant" property="wv_consultant" jdbcType="VARCHAR"/>
|
|
|
|
+ <result column="wv_account_number" property="wv_account_number" jdbcType="VARCHAR"/>
|
|
|
|
+ <result column="wv_account_bank" property="wv_account_bank" jdbcType="VARCHAR"/>
|
|
|
|
+ <result column="wv_account_number_path" property="wv_account_number_path" jdbcType="VARCHAR"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<!--获取所有数据-->
|
|
<!--获取所有数据-->
|
|
@@ -30,7 +29,8 @@
|
|
order by id desc
|
|
order by id desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="checkDcIntroducers" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer" parameterType="java.lang.String">
|
|
|
|
|
|
+ <select id="checkDcIntroducers" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer"
|
|
|
|
+ parameterType="java.lang.String">
|
|
select
|
|
select
|
|
*
|
|
*
|
|
from dc_introducer
|
|
from dc_introducer
|
|
@@ -38,9 +38,27 @@
|
|
order by id desc
|
|
order by id desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="queryDcIntroducersByUser" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer"
|
|
|
|
+ parameterType="java.lang.String">
|
|
|
|
+ SELECT
|
|
|
|
+ *
|
|
|
|
+ FROM
|
|
|
|
+ dc_introducer
|
|
|
|
+ WHERE
|
|
|
|
+ wv_phone IN (
|
|
|
|
+ SELECT DISTINCT
|
|
|
|
+ (xul_introducer_phone)
|
|
|
|
+ FROM
|
|
|
|
+ dc_introduce_log
|
|
|
|
+ WHERE
|
|
|
|
+ xul_phone = #{xul_phone,jdbcType=VARCHAR}
|
|
|
|
+ AND xul_introducer_phone != ''
|
|
|
|
+ )
|
|
|
|
+ </select>
|
|
|
|
|
|
|
|
|
|
- <select id="queryDcIntroducers" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer">
|
|
|
|
|
|
+ <select id="queryDcIntroducers" resultType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer"
|
|
|
|
+ parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer">
|
|
select
|
|
select
|
|
id,
|
|
id,
|
|
wv_phone,
|
|
wv_phone,
|
|
@@ -50,7 +68,6 @@
|
|
wv_Introduction_count,
|
|
wv_Introduction_count,
|
|
wv_extract_count,
|
|
wv_extract_count,
|
|
wv_qrcode,
|
|
wv_qrcode,
|
|
- wv_order_count,
|
|
|
|
wv_people_count,
|
|
wv_people_count,
|
|
wv_register_count,
|
|
wv_register_count,
|
|
wv_contract_count,
|
|
wv_contract_count,
|
|
@@ -79,9 +96,6 @@
|
|
<if test="wv_qrcode != null and wv_qrcode != ''">
|
|
<if test="wv_qrcode != null and wv_qrcode != ''">
|
|
and wv_qrcode = #{wv_qrcode,jdbcType=VARCHAR}
|
|
and wv_qrcode = #{wv_qrcode,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
- <if test="wv_order_count != null and wv_order_count != ''">
|
|
|
|
- and wv_order_count = #{wv_order_count,jdbcType=INTEGER}
|
|
|
|
- </if>
|
|
|
|
<if test="wv_people_count != null and wv_people_count != ''">
|
|
<if test="wv_people_count != null and wv_people_count != ''">
|
|
and wv_people_count = #{wv_people_count,jdbcType=INTEGER}
|
|
and wv_people_count = #{wv_people_count,jdbcType=INTEGER}
|
|
</if>
|
|
</if>
|
|
@@ -112,65 +126,62 @@
|
|
order by id desc
|
|
order by id desc
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <update id="updateDcIntroducer" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer" >
|
|
|
|
|
|
+ <update id="updateDcIntroducer" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer">
|
|
update dc_introducer
|
|
update dc_introducer
|
|
- <set >
|
|
|
|
- <if test="wv_phone != null" >
|
|
|
|
|
|
+ <set>
|
|
|
|
+ <if test="wv_phone != null">
|
|
wv_phone = #{wv_phone,jdbcType=VARCHAR},
|
|
wv_phone = #{wv_phone,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_gradeid != null" >
|
|
|
|
|
|
+ <if test="wv_gradeid != null">
|
|
wv_gradeid = #{wv_gradeid,jdbcType=INTEGER},
|
|
wv_gradeid = #{wv_gradeid,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_Introduction_total != null" >
|
|
|
|
|
|
+ <if test="wv_Introduction_total != null">
|
|
wv_Introduction_total = #{wv_Introduction_total,jdbcType=DECIMAL},
|
|
wv_Introduction_total = #{wv_Introduction_total,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_withdraw_total != null" >
|
|
|
|
|
|
+ <if test="wv_withdraw_total != null">
|
|
wv_withdraw_total = #{wv_withdraw_total,jdbcType=DECIMAL},
|
|
wv_withdraw_total = #{wv_withdraw_total,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_Introduction_count != null" >
|
|
|
|
|
|
+ <if test="wv_Introduction_count != null">
|
|
wv_Introduction_count = #{wv_Introduction_count,jdbcType=INTEGER},
|
|
wv_Introduction_count = #{wv_Introduction_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_order_count != null" >
|
|
|
|
- wv_order_count = #{wv_order_count,jdbcType=INTEGER},
|
|
|
|
- </if>
|
|
|
|
- <if test="wv_extract_count != null" >
|
|
|
|
|
|
+ <if test="wv_extract_count != null">
|
|
wv_extract_count = #{wv_extract_count,jdbcType=INTEGER},
|
|
wv_extract_count = #{wv_extract_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_qrcode != null" >
|
|
|
|
|
|
+ <if test="wv_qrcode != null">
|
|
wv_qrcode = #{wv_qrcode,jdbcType=VARCHAR},
|
|
wv_qrcode = #{wv_qrcode,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_register_count != null" >
|
|
|
|
|
|
+ <if test="wv_register_count != null">
|
|
wv_register_count = #{wv_register_count,jdbcType=INTEGER},
|
|
wv_register_count = #{wv_register_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_contract_count != null" >
|
|
|
|
|
|
+ <if test="wv_contract_count != null">
|
|
wv_contract_count = #{wv_contract_count,jdbcType=INTEGER},
|
|
wv_contract_count = #{wv_contract_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_finish_count != null" >
|
|
|
|
|
|
+ <if test="wv_finish_count != null">
|
|
wv_finish_count = #{wv_finish_count,jdbcType=INTEGER},
|
|
wv_finish_count = #{wv_finish_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_people_count != null" >
|
|
|
|
|
|
+ <if test="wv_people_count != null">
|
|
wv_people_count = #{wv_people_count,jdbcType=INTEGER},
|
|
wv_people_count = #{wv_people_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_consultant != null" >
|
|
|
|
|
|
+ <if test="wv_consultant != null">
|
|
wv_consultant = #{wv_consultant,jdbcType=INTEGER},
|
|
wv_consultant = #{wv_consultant,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
|
|
|
|
- <if test="wv_account_number_path != null" >
|
|
|
|
|
|
+ <if test="wv_account_number_path != null">
|
|
wv_account_number_path = #{wv_account_number_path,jdbcType=VARCHAR},
|
|
wv_account_number_path = #{wv_account_number_path,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_account_bank != null" >
|
|
|
|
|
|
+ <if test="wv_account_bank != null">
|
|
wv_account_bank = #{wv_account_bank,jdbcType=VARCHAR},
|
|
wv_account_bank = #{wv_account_bank,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_account_number != null" >
|
|
|
|
|
|
+ <if test="wv_account_number != null">
|
|
wv_account_number = #{wv_account_number,jdbcType=VARCHAR}
|
|
wv_account_number = #{wv_account_number,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
</update>
|
|
|
|
|
|
- <update id="updateAccountNumber" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer" >
|
|
|
|
|
|
+ <update id="updateAccountNumber" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer">
|
|
update dc_introducer
|
|
update dc_introducer
|
|
- <set >
|
|
|
|
|
|
+ <set>
|
|
<if test="wv_account_number != null" >
|
|
<if test="wv_account_number != null" >
|
|
wv_account_number = #{wv_account_number,jdbcType=VARCHAR},
|
|
wv_account_number = #{wv_account_number,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
@@ -185,99 +196,93 @@
|
|
</update>
|
|
</update>
|
|
|
|
|
|
|
|
|
|
- <insert id="insertDcIntroducer" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer" >
|
|
|
|
|
|
+ <insert id="insertDcIntroducer" parameterType="com.ygj.yuemum.domain.distributionchannel.DcIntroducer">
|
|
insert into dc_introducer
|
|
insert into dc_introducer
|
|
- <trim prefix="(" suffix=")" suffixOverrides="," >
|
|
|
|
- <if test="wv_phone != null" >
|
|
|
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="wv_phone != null">
|
|
wv_phone,
|
|
wv_phone,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_gradeid != null" >
|
|
|
|
|
|
+ <if test="wv_gradeid != null">
|
|
wv_gradeid,
|
|
wv_gradeid,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_Introduction_total != null" >
|
|
|
|
|
|
+ <if test="wv_Introduction_total != null">
|
|
wv_Introduction_total,
|
|
wv_Introduction_total,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_withdraw_total != null" >
|
|
|
|
|
|
+ <if test="wv_withdraw_total != null">
|
|
wv_withdraw_total,
|
|
wv_withdraw_total,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_Introduction_count != null" >
|
|
|
|
|
|
+ <if test="wv_Introduction_count != null">
|
|
wv_Introduction_count,
|
|
wv_Introduction_count,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_order_count != null" >
|
|
|
|
- wv_order_count,
|
|
|
|
- </if>
|
|
|
|
- <if test="wv_extract_count != null" >
|
|
|
|
|
|
+ <if test="wv_extract_count != null">
|
|
wv_extract_count,
|
|
wv_extract_count,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_qrcode != null" >
|
|
|
|
|
|
+ <if test="wv_qrcode != null">
|
|
wv_qrcode,
|
|
wv_qrcode,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_register_count != null" >
|
|
|
|
|
|
+ <if test="wv_register_count != null">
|
|
wv_register_count,
|
|
wv_register_count,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_contract_count != null" >
|
|
|
|
|
|
+ <if test="wv_contract_count != null">
|
|
wv_contract_count,
|
|
wv_contract_count,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_finish_count != null" >
|
|
|
|
|
|
+ <if test="wv_finish_count != null">
|
|
wv_finish_count,
|
|
wv_finish_count,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_people_count != null" >
|
|
|
|
|
|
+ <if test="wv_people_count != null">
|
|
wv_people_count,
|
|
wv_people_count,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_account_number != null" >
|
|
|
|
|
|
+ <if test="wv_account_number != null">
|
|
wv_account_number,
|
|
wv_account_number,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_account_bank != null" >
|
|
|
|
|
|
+ <if test="wv_account_bank != null">
|
|
wv_account_bank,
|
|
wv_account_bank,
|
|
</if>
|
|
</if>
|
|
- <if test="wv_consultant != null" >
|
|
|
|
|
|
+ <if test="wv_consultant != null">
|
|
wv_consultant
|
|
wv_consultant
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|
|
- <trim prefix="values (" suffix=")" suffixOverrides="," >
|
|
|
|
- <if test="wv_phone != null" >
|
|
|
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
+ <if test="wv_phone != null">
|
|
#{wv_phone,jdbcType=VARCHAR},
|
|
#{wv_phone,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_gradeid != null" >
|
|
|
|
|
|
+ <if test="wv_gradeid != null">
|
|
#{wv_gradeid,jdbcType=INTEGER},
|
|
#{wv_gradeid,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_Introduction_total != null" >
|
|
|
|
|
|
+ <if test="wv_Introduction_total != null">
|
|
#{wv_Introduction_total,jdbcType=DECIMAL},
|
|
#{wv_Introduction_total,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_withdraw_total != null" >
|
|
|
|
|
|
+ <if test="wv_withdraw_total != null">
|
|
#{wv_withdraw_total,jdbcType=DECIMAL},
|
|
#{wv_withdraw_total,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_extract_count != null" >
|
|
|
|
|
|
+ <if test="wv_extract_count != null">
|
|
#{wv_extract_count,jdbcType=INTEGER},
|
|
#{wv_extract_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_order_count != null" >
|
|
|
|
- #{wv_order_count,jdbcType=INTEGER},
|
|
|
|
- </if>
|
|
|
|
- <if test="wv_Introduction_count != null" >
|
|
|
|
|
|
+ <if test="wv_Introduction_count != null">
|
|
#{wv_Introduction_count,jdbcType=INTEGER},
|
|
#{wv_Introduction_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_qrcode != null" >
|
|
|
|
|
|
+ <if test="wv_qrcode != null">
|
|
#{wv_qrcode,jdbcType=VARCHAR},
|
|
#{wv_qrcode,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_register_count != null" >
|
|
|
|
|
|
+ <if test="wv_register_count != null">
|
|
#{wv_register_count,jdbcType=INTEGER},
|
|
#{wv_register_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_contract_count != null" >
|
|
|
|
|
|
+ <if test="wv_contract_count != null">
|
|
#{wv_contract_count,jdbcType=INTEGER},
|
|
#{wv_contract_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_finish_count != null" >
|
|
|
|
|
|
+ <if test="wv_finish_count != null">
|
|
#{wv_finish_count,jdbcType=INTEGER},
|
|
#{wv_finish_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_people_count != null" >
|
|
|
|
|
|
+ <if test="wv_people_count != null">
|
|
#{wv_people_count,jdbcType=INTEGER},
|
|
#{wv_people_count,jdbcType=INTEGER},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_account_number != null" >
|
|
|
|
|
|
+ <if test="wv_account_number != null">
|
|
#{wv_account_number,jdbcType=VARCHAR},
|
|
#{wv_account_number,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_account_bank != null" >
|
|
|
|
|
|
+ <if test="wv_account_bank != null">
|
|
#{wv_account_bank,jdbcType=VARCHAR},
|
|
#{wv_account_bank,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="wv_consultant != null" >
|
|
|
|
|
|
+ <if test="wv_consultant != null">
|
|
#{wv_consultant,jdbcType=VARCHAR}
|
|
#{wv_consultant,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
</trim>
|
|
</trim>
|