|
|
@ -455,9 +455,10 @@ |
|
|
|
LEFT JOIN t_label_business lb on d.id = lb.business_id and lb.rec_status = 0 |
|
|
|
LEFT JOIN t_label l on l.id = lb.label_id and l.rec_status = 0 |
|
|
|
LEFT JOIN t_pro_parent_task p on d.id = p.task_detail_id and p.rec_status = 0 |
|
|
|
LEFT JOIN t_pro_task_detail d2 on d2.id = p.parent_task_detail_id and d2.rec_status = 0 |
|
|
|
WHERE |
|
|
|
l.label_type_id = 2 |
|
|
|
and p.parent_task_detail_id is null |
|
|
|
and d2.id is null |
|
|
|
and |
|
|
|
l.`level` = 0 |
|
|
|
and |
|
|
|