J
Jj1985
Unregistered / Unconfirmed
GUEST, unregistred user!
fncSql := 'select d.apply_id,ent_Name,Taskid from (SELECT apply_id,ent_Name FROM Exe_apply a,base_ent_info b where a.ent_id=b.ent_id and(apply_state_id=4 or apply_state_id=7)and gist_trade_id in (select Trade_id from exe_user_trade where user_id='+TShare_WorkTag.UserID+')) d left outer join Exec_task c on d.apply_id=c.Planid