|
@@ -72,24 +72,24 @@
|
|
|
GROUP BY ksId ,accountName
|
|
|
) t2 ON t2.accountName = t1.account_name AND t2.ksId = t1.ks_id
|
|
|
where account_type in ('cljn','cljnydd' ,'cp')
|
|
|
- <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="accountType != null and accountType != ''">and account_type like concat('%', #{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="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="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>
|
|
|
|
|
|
ORDER BY create_time desc
|
|
|
</select>
|
|
@@ -131,7 +131,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 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>
|