|
@@ -1,7 +1,8 @@
|
|
|
-select t.fbillnum,t.fstatus,convert(varchar,t.createdate,120)createdate,convert(varchar,t.submitdate,120)submitdate,problemmsg,submitby,
|
|
|
|
|
|
|
+select t.fbillnum,t.fstatus,convert(varchar,t.createdate,120)createdate,convert(varchar,t.submitdate,120)submitdate,problemmsg,submitby,pp_hr.displayname fname,
|
|
|
(
|
|
(
|
|
|
select top 1 fobsurl from tattachment t3 where ownertable='HYCONFIRMATIONORDER' and ownerid=t.hyconfirmationorid and type='È·Èϵ¥Ô¤ÀÀͼ' order by createdate desc
|
|
select top 1 fobsurl from tattachment t3 where ownertable='HYCONFIRMATIONORDER' and ownerid=t.hyconfirmationorid and type='È·Èϵ¥Ô¤ÀÀͼ' order by createdate desc
|
|
|
)fobsurl
|
|
)fobsurl
|
|
|
from hyconfirmationorder t
|
|
from hyconfirmationorder t
|
|
|
join hyWorkorder t1 on t.fparentid=t1.hyWorkorderid
|
|
join hyWorkorder t1 on t.fparentid=t1.hyWorkorderid
|
|
|
|
|
+ left join pp_hr on pp_hr.hrid=t.submitby and pp_hr.siteid=t.siteid
|
|
|
where t1.fworknum=$fworknum$
|
|
where t1.fworknum=$fworknum$
|