소스 검색

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

hu 4 년 전
부모
커밋
7dee09bdcc
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      src/rest/openapi/restcontroller/hyworkorder/webapp/hyconfirmationorder/SQL/售后服务确认单列表.sql

+ 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$