hu 4 лет назад
Родитель
Сommit
f932937d5a

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

@@ -1,6 +1,6 @@
 select t.fbillnum,t.fstatus,convert(varchar,t.createdate,120)createdate,convert(varchar,t.submitdate,120)submitdate,problemmsg,submitby,
        (
-           select top 1 fobsurl from tattachment t3 where ownertable='HYCONFIRMATIONORDER' and ownerid=t.hyconfirmationorid and type='횅훰데渡응暠'
+           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