|
|
@ -55,7 +55,7 @@
|
|
|
|
from tb_clue
|
|
|
|
from tb_clue
|
|
|
|
where DATE_FORMAT(create_time, '%Y-%m-%d') >= #{qo.createStartTime}
|
|
|
|
where DATE_FORMAT(create_time, '%Y-%m-%d') >= #{qo.createStartTime}
|
|
|
|
and DATE_FORMAT(create_time, '%Y-%m-%d') <= #{qo.createEndTime}
|
|
|
|
and DATE_FORMAT(create_time, '%Y-%m-%d') <= #{qo.createEndTime}
|
|
|
|
and company_id = #{qo.companyId}
|
|
|
|
and company_id = #{qo.companyId} and deleted = 0
|
|
|
|
<if test="qo.channelType!=null">
|
|
|
|
<if test="qo.channelType!=null">
|
|
|
|
and channel_type = #{qo.channelType}
|
|
|
|
and channel_type = #{qo.channelType}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -71,7 +71,7 @@
|
|
|
|
select count(1)
|
|
|
|
select count(1)
|
|
|
|
from tb_clue
|
|
|
|
from tb_clue
|
|
|
|
where DATE_FORMAT(create_time, '%Y-%m-%d') = #{date}
|
|
|
|
where DATE_FORMAT(create_time, '%Y-%m-%d') = #{date}
|
|
|
|
and company_id = #{companyId}
|
|
|
|
and company_id = #{companyId} and deleted = 0
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectListByQo" resultType="com.baiye.modules.distribute.vo.ClueVO">
|
|
|
|
<select id="selectListByQo" resultType="com.baiye.modules.distribute.vo.ClueVO">
|
|
|
@ -86,6 +86,7 @@
|
|
|
|
from tb_clue
|
|
|
|
from tb_clue
|
|
|
|
where DATE_FORMAT(create_time, '%Y-%m-%d') >= #{qo.createStartTime}
|
|
|
|
where DATE_FORMAT(create_time, '%Y-%m-%d') >= #{qo.createStartTime}
|
|
|
|
and DATE_FORMAT(create_time, '%Y-%m-%d') <= #{qo.createEndTime}
|
|
|
|
and DATE_FORMAT(create_time, '%Y-%m-%d') <= #{qo.createEndTime}
|
|
|
|
|
|
|
|
and deleted = 0
|
|
|
|
<if test="qo.channelType!=null">
|
|
|
|
<if test="qo.channelType!=null">
|
|
|
|
and channel_type = #{qo.channelType}
|
|
|
|
and channel_type = #{qo.channelType}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
@ -103,7 +104,9 @@
|
|
|
|
FROM tb_clue
|
|
|
|
FROM tb_clue
|
|
|
|
where assigned_by = #{assignedBy}
|
|
|
|
where assigned_by = #{assignedBy}
|
|
|
|
and create_by = #{createBy}
|
|
|
|
and create_by = #{createBy}
|
|
|
|
|
|
|
|
and deleted = 0
|
|
|
|
group by custom_id
|
|
|
|
group by custom_id
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
<select id="findCustomIdAndCreate" resultType="com.baiye.modules.distribute.vo.ClueVO">
|
|
|
|
<select id="findCustomIdAndCreate" resultType="com.baiye.modules.distribute.vo.ClueVO">
|
|
|
|
SELECT
|
|
|
|
SELECT
|
|
|
@ -112,5 +115,6 @@
|
|
|
|
where ce.custom_id = #{customId}
|
|
|
|
where ce.custom_id = #{customId}
|
|
|
|
and ce.create_by = #{createBy}
|
|
|
|
and ce.create_by = #{createBy}
|
|
|
|
and ce.deleted = #{num}
|
|
|
|
and ce.deleted = #{num}
|
|
|
|
|
|
|
|
and deleted = 0
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|