|
|
|
@ -54,7 +54,9 @@
|
|
|
|
|
where DATE_FORMAT(create_time, '%Y-%m-%d') >= #{qo.createStartTime}
|
|
|
|
|
and DATE_FORMAT(create_time, '%Y-%m-%d') <= #{qo.createEndTime}
|
|
|
|
|
and company_id = #{qo.companyId}
|
|
|
|
|
<if test="qo.channelType!=null">
|
|
|
|
|
and channel_type = #{qo.channelType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="qo.assignedIdList != null and qo.assignedIdList.size > 0">
|
|
|
|
|
and assigned_by in
|
|
|
|
|
<foreach collection="qo.assignedIdList" open="(" separator="," close=")" item="item">
|
|
|
|
@ -82,7 +84,9 @@
|
|
|
|
|
from tb_clue
|
|
|
|
|
where DATE_FORMAT(create_time, '%Y-%m-%d') >= #{qo.createStartTime}
|
|
|
|
|
and DATE_FORMAT(create_time, '%Y-%m-%d') <= #{qo.createEndTime}
|
|
|
|
|
<if test="qo.channelType!=null">
|
|
|
|
|
and channel_type = #{qo.channelType}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="qo.distributorId!=null">
|
|
|
|
|
and create_by = #{qo.distributorId}
|
|
|
|
|
</if>
|
|
|
|
|