|
|
@@ -47,4 +47,4 @@ FROM tagents t1
|
|
|
left join tagents t2 on t1.fupagentnum=t2.fagentnum and t1.siteid=t2.siteid
|
|
|
where t1.siteid =$siteid$
|
|
|
and exists (select fagentnum from tagents_field where hrid in $hrid$ and siteid=t1.siteid and fagentnum=t1.fagentnum )
|
|
|
- and $where$
|
|
|
+ and t1.fisused=1 and $where$
|