|
|
@@ -95,7 +95,8 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="selectAllListByAccountNames" parameterType="com.ruixuan.live.entity.KuaishouLiveUserAccount" resultMap="KuaishouLiveUserAccountResult">
|
|
|
+ <select id="selectAllListByAccountNames" parameterType="com.ruixuan.live.entity.KuaishouLiveUserAccount"
|
|
|
+ resultMap="KuaishouLiveUserAccountResult">
|
|
|
select id,
|
|
|
ks_id,
|
|
|
ks_name,
|
|
|
@@ -149,7 +150,8 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="queryAllList" parameterType="com.ruixuan.live.entity.KuaishouLiveUserAccount" resultMap="KuaishouLiveUserAccountResult">
|
|
|
+ <select id="queryAllList" parameterType="com.ruixuan.live.entity.KuaishouLiveUserAccount"
|
|
|
+ resultMap="KuaishouLiveUserAccountResult">
|
|
|
<include refid="selectKuaishouLiveUserAccountVo"/>
|
|
|
<where>
|
|
|
<if test="ksId != null ">and ks_id = #{ksId}</if>
|
|
|
@@ -157,8 +159,7 @@
|
|
|
<if test="accountId != null ">and account_id = #{accountId}</if>
|
|
|
<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 =
|
|
|
@@ -175,7 +176,8 @@
|
|
|
ORDER BY create_time desc
|
|
|
</select>
|
|
|
|
|
|
- <select id="queryAllListByAccountNames" parameterType="com.ruixuan.live.entity.KuaishouLiveUserAccount" resultMap="KuaishouLiveUserAccountResult">
|
|
|
+ <select id="queryAllListByAccountNames" parameterType="com.ruixuan.live.entity.KuaishouLiveUserAccount"
|
|
|
+ resultMap="KuaishouLiveUserAccountResult">
|
|
|
<include refid="selectKuaishouLiveUserAccountVo"/>
|
|
|
<where>
|
|
|
<if test="accountNames != null and accountNames.size() > 0">
|
|
|
@@ -185,9 +187,24 @@
|
|
|
#{name}
|
|
|
</foreach>
|
|
|
</if>
|
|
|
+
|
|
|
+ <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>
|
|
|
- <if test="ksName != null and ksName != ''">and ks_name like concat('%', #{ksName}, '%')</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 =
|
|
|
+ #{operatorLeaderId}
|
|
|
+ </if>
|
|
|
+ <if test="operatorLeader != null and operatorLeader != ''">and operator_leader = #{operatorLeader}</if>
|
|
|
+ <if test="designerLeaderId != null and designerLeaderId != ''">and designer_leader_id =
|
|
|
+ #{designerLeaderId}
|
|
|
+ </if>
|
|
|
+ <if test="designerLeader != null and designerLeader != ''">and designer_leader = #{designerLeader}</if>
|
|
|
+ <if test="createrId != null and createrId != ''">and creater_id = #{createrId}</if>
|
|
|
<if test="accountStatus != null and accountStatus != ''">and account_status = #{accountStatus}</if>
|
|
|
</where>
|
|
|
ORDER BY create_time desc
|