Jelajahi Sumber

服务确认单列表添加提交人名称

hu 4 tahun lalu
induk
melakukan
7dee09bdcc

+ 2 - 1
src/rest/openapi/restcontroller/hyworkorder/webapp/hyconfirmationorder/SQL/售后服务确认单列表.sql

@@ -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
        )fobsurl
 from hyconfirmationorder t
          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$