|
@@ -17,7 +17,6 @@
|
|
|
<result property="operatorLeader" column="operator_leader"/>
|
|
|
<result property="designerLeaderId" column="designer_leader_id"/>
|
|
|
<result property="designerLeader" column="designer_leader"/>
|
|
|
- <result property="putType" column="put_type"/>
|
|
|
<result property="createrId" column="creater_id"/>
|
|
|
<result property="createTime" column="create_time"/>
|
|
|
<result property="updateTime" column="update_time"/>
|
|
@@ -26,18 +25,25 @@
|
|
|
|
|
|
<sql id="selectKuaishouLiveUserAccountVo">
|
|
|
select id,
|
|
|
+ project_id,
|
|
|
ks_id,
|
|
|
ks_name,
|
|
|
account_id,
|
|
|
account_name,
|
|
|
account_type,
|
|
|
+ payment_method,
|
|
|
sale_leader_id,
|
|
|
sale_leader,
|
|
|
operator_leader_id,
|
|
|
operator_leader,
|
|
|
designer_leader_id,
|
|
|
designer_leader,
|
|
|
- put_type
|
|
|
+ enterprise_name,
|
|
|
+ first_industry,
|
|
|
+ secondary_industry,
|
|
|
+ qualification_status,
|
|
|
+ account_status,
|
|
|
+ port_name
|
|
|
from kuaishou_live_user_account
|
|
|
</sql>
|
|
|
|
|
@@ -55,7 +61,6 @@
|
|
|
operator_leader,
|
|
|
designer_leader_id,
|
|
|
designer_leader,
|
|
|
- put_type,
|
|
|
IFNULL(t2.count,0) as 'count'
|
|
|
from kuaishou_live_user_account t1
|
|
|
left join (
|
|
@@ -66,10 +71,10 @@
|
|
|
<if test="ksId != null ">and ks_id = #{ksId}</if>
|
|
|
<if test="ksName != null and ksName != ''">and ks_name like concat('%', #{ksName}, '%')</if>
|
|
|
<if test="accountId != null ">and account_id = #{accountId}</if>
|
|
|
- <if test="accountName != null and accountName != ''">and account_name like concat('%', #{accountName},
|
|
|
- '%')
|
|
|
+ <if test="accountName != null and accountName != ''">and account_name like concat('%', #{accountName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="accountType != null and accountType != ''">and account_type like concat('%', #{accountType}, '%')
|
|
|
</if>
|
|
|
- <if test="accountType != null and accountType != ''">and account_type = #{accountType}</if>
|
|
|
<if test="saleLeaderId != null and saleLeaderId != ''">and sale_leader_id = #{saleLeaderId}</if>
|
|
|
<if test="saleLeader != null and saleLeader != ''">and sale_leader = #{saleLeader}</if>
|
|
|
<if test="operatorLeaderId != null and operatorLeaderId != ''">and operator_leader_id =
|
|
@@ -80,7 +85,6 @@
|
|
|
#{designerLeaderId}
|
|
|
</if>
|
|
|
<if test="designerLeader != null and designerLeader != ''">and designer_leader = #{designerLeader}</if>
|
|
|
- <if test="putType != null and putType != ''">and put_type like concat('%', #{putType}, '%')</if>
|
|
|
<if test="createrId != null and createrId != ''">and creater_id = #{createrId}</if>
|
|
|
</where>
|
|
|
ORDER BY create_time desc
|
|
@@ -117,36 +121,50 @@
|
|
|
insert into kuaishou_live_user_account
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">id,</if>
|
|
|
+ <if test="projectId != null">project_id,</if>
|
|
|
<if test="ksId != null">ks_id,</if>
|
|
|
<if test="ksName != null">ks_name,</if>
|
|
|
<if test="accountId != null">account_id,</if>
|
|
|
<if test="accountName != null">account_name,</if>
|
|
|
<if test="accountType != null">account_type,</if>
|
|
|
+ <if test="paymentMethod != null">payment_method,</if>
|
|
|
<if test="saleLeaderId != null">sale_leader_id,</if>
|
|
|
<if test="saleLeader != null">sale_leader,</if>
|
|
|
<if test="operatorLeaderId != null">operator_leader_id,</if>
|
|
|
<if test="operatorLeader != null">operator_leader,</if>
|
|
|
<if test="designerLeaderId != null">designer_leader_id,</if>
|
|
|
<if test="designerLeader != null">designer_leader,</if>
|
|
|
- <if test="putType != null">put_type,</if>
|
|
|
+ <if test="enterpriseName != null">enterprise_name,</if>
|
|
|
+ <if test="firstIndustry != null">first_industry,</if>
|
|
|
+ <if test="secondaryIndustry != null">secondary_industry,</if>
|
|
|
+ <if test="qualificationStatus != null">qualification_status,</if>
|
|
|
+ <if test="accountStatus != null">account_status,</if>
|
|
|
+ <if test="portName != null">port_name,</if>
|
|
|
<if test="createrId != null">creater_id,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateTime != null">update_time,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">#{id},</if>
|
|
|
+ <if test="projectId != null">#{projectId},</if>
|
|
|
<if test="ksId != null">#{ksId},</if>
|
|
|
<if test="ksName != null">#{ksName},</if>
|
|
|
<if test="accountId != null">#{accountId},</if>
|
|
|
<if test="accountName != null">#{accountName},</if>
|
|
|
<if test="accountType != null">#{accountType},</if>
|
|
|
+ <if test="paymentMethod != null">#{paymentMethod},</if>
|
|
|
<if test="saleLeaderId != null">#{saleLeaderId},</if>
|
|
|
<if test="saleLeader != null">#{saleLeader},</if>
|
|
|
<if test="operatorLeaderId != null">#{operatorLeaderId},</if>
|
|
|
<if test="operatorLeader != null">#{operatorLeader},</if>
|
|
|
<if test="designerLeaderId != null">#{designerLeaderId},</if>
|
|
|
<if test="designerLeader != null">#{designerLeader},</if>
|
|
|
- <if test="putType != null">#{putType},</if>
|
|
|
+ <if test="enterpriseName != null">#{enterpriseName},</if>
|
|
|
+ <if test="firstIndustry != null">#{firstIndustry},</if>
|
|
|
+ <if test="secondaryIndustry != null">#{secondaryIndustry},</if>
|
|
|
+ <if test="qualificationStatus != null">#{qualificationStatus},</if>
|
|
|
+ <if test="accountStatus != null">#{accountStatus},</if>
|
|
|
+ <if test="portName != null">#{portName},</if>
|
|
|
<if test="createrId != null">#{createrId},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateTime != null">#{updateTime},</if>
|
|
@@ -156,18 +174,25 @@
|
|
|
<update id="updateKuaishouLiveUserAccount" parameterType="com.ruixuan.live.entity.KuaishouLiveUserAccount">
|
|
|
update kuaishou_live_user_account
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="projectId != null">project_id = #{projectId},</if>
|
|
|
<if test="ksId != null">ks_id = #{ksId},</if>
|
|
|
<if test="ksName != null">ks_name = #{ksName},</if>
|
|
|
<if test="accountId != null">account_id = #{accountId},</if>
|
|
|
<if test="accountName != null">account_name = #{accountName},</if>
|
|
|
<if test="accountType != null">account_type = #{accountType},</if>
|
|
|
+ <if test="paymentMethod != null">payment_method = #{paymentMethod},</if>
|
|
|
<if test="saleLeaderId != null">sale_leader_id = #{saleLeaderId},</if>
|
|
|
<if test="saleLeader != null">sale_leader = #{saleLeader},</if>
|
|
|
<if test="operatorLeaderId != null">operator_leader_id = #{operatorLeaderId},</if>
|
|
|
<if test="operatorLeader != null">operator_leader = #{operatorLeader},</if>
|
|
|
<if test="designerLeaderId != null">designer_leader_id = #{designerLeaderId},</if>
|
|
|
<if test="designerLeader != null">designer_leader = #{designerLeader},</if>
|
|
|
- <if test="putType != null">put_type = #{putType},</if>
|
|
|
+ <if test="enterpriseName != null">enterprise_name = #{enterpriseName},</if>
|
|
|
+ <if test="firstIndustry != null">first_industry = #{firstIndustry},</if>
|
|
|
+ <if test="secondaryIndustry != null">secondary_industry = #{secondaryIndustry},</if>
|
|
|
+ <if test="qualificationStatus != null">qualification_status = #{qualificationStatus},</if>
|
|
|
+ <if test="accountStatus != null">account_status = #{accountStatus},</if>
|
|
|
+ <if test="portName != null">port_name = #{portName},</if>
|
|
|
<if test="createrId != null">creater_id = #{createrId},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if>
|