|
@@ -7,5 +7,5 @@ left join tenterprise_users t2 on t1.siteid=t2.siteid and t1.fsaleruserid=t2.ten
|
|
|
left join tagents_workers t3 on t1.siteid=t3.siteid and t1.tagentsid=t3.tagentsid and t3.fiscooperation=1
|
|
|
left join tagents_workersubmit t4 on t1.siteid=t4.siteid and t1.tagentsid=t4.tagentsid and t4.fismodify=0 and convert(varchar(7),t4.createdate,120)=convert(varchar(7),GETDATE(),120)
|
|
|
left join tagents_workersubmit t5 on t1.siteid=t5.siteid and t1.tagentsid=t5.tagentsid and t5.fismodify=0 and year(t5.createdate)=year(GETDATE())
|
|
|
-where t3.fsubmitcount>0 and t1.siteid=$siteid$
|
|
|
+where t1.siteid=$siteid$
|
|
|
group by t1.tagentsid,t1.fagentshortname,t2.fname,t1.fprovince,t1.fcity,t1.fcounty,t3.fsubmitcount
|