跟进任务新增线索私海限制

This commit is contained in:
zhangchenbiao
2023-08-23 17:45:28 +08:00
parent 93d38d737a
commit 5db08d9752

View File

@@ -157,7 +157,7 @@
a.update_time a.update_time
from from
hy_follow_task a hy_follow_task a
inner join hy_partner_line_info b on a.partner_line_id = b.id and b.deleted = '0' inner join hy_partner_line_info b on a.partner_line_id = b.id and b.deleted = '0' and b.line_status in ('1', '2')
where where
a.deleted = '0' and a.follow_user_id = #{followUserId} a.deleted = '0' and a.follow_user_id = #{followUserId}
<if test="taskStatus != null"> <if test="taskStatus != null">
@@ -194,7 +194,7 @@
a.follow_user_id a.follow_user_id
from from
hy_follow_task a hy_follow_task a
inner join hy_partner_line_info b on a.partner_line_id = b.id and b.deleted = '0' inner join hy_partner_line_info b on a.partner_line_id = b.id and b.deleted = '0' and b.line_status in ('1', '2')
where where
a.deleted = '0' and (a.task_status in ('2') or (a.task_status in ('0') and a.deadline >= #{startTime} and #{endTime} >= a.deadline)) a.deleted = '0' and (a.task_status in ('2') or (a.task_status in ('0') and a.deadline >= #{startTime} and #{endTime} >= a.deadline))
</select> </select>
@@ -206,7 +206,7 @@
sum(if(a.task_status=0 and #{endTime} > a.deadline, 1, 0)) as todoNum sum(if(a.task_status=0 and #{endTime} > a.deadline, 1, 0)) as todoNum
from from
hy_follow_task a hy_follow_task a
inner join hy_partner_line_info b on a.partner_line_id = b.id and b.deleted = '0' inner join hy_partner_line_info b on a.partner_line_id = b.id and b.deleted = '0' and b.line_status in ('1', '2')
where where
a.follow_user_id in <foreach collection="followUserIds" item="followUserId" separator="," open="(" close=")">#{followUserId}</foreach> a.follow_user_id in <foreach collection="followUserIds" item="followUserId" separator="," open="(" close=")">#{followUserId}</foreach>
group by a.follow_user_id group by a.follow_user_id
@@ -228,7 +228,7 @@
a.update_time a.update_time
from from
hy_follow_task a hy_follow_task a
inner join hy_partner_line_info b on a.partner_line_id = b.id and b.deleted = '0' inner join hy_partner_line_info b on a.partner_line_id = b.id and b.deleted = '0' and b.line_status in ('1', '2')
where where
a.deleted = '0' and a.task_status in ('0') and a.deadline > #{startTime} and #{endTime} > a.deadline a.deleted = '0' and a.task_status in ('0') and a.deadline > #{startTime} and #{endTime} > a.deadline
</select> </select>