Procházet zdrojové kódy

工单节点详情查询附件排序调整

沈静伟 před 3 roky
rodič
revize
fa4b4a0b25

+ 1 - 1
src/rest/openapi/restcontroller/hyworkorder/webapp/workorder/SQL/华为云附件查询.sql

@@ -1,4 +1,4 @@
 select tattachmentid,fdocument document,UPPER(postfix) postfix,fobsurl url,serialnumber,type,
 select tattachmentid,fdocument document,UPPER(postfix) postfix,fobsurl url,serialnumber,type,
 case when postfix in ('JPG','PNG','JEPG','jpg','png','jepg') then 'image'
 case when postfix in ('JPG','PNG','JEPG','jpg','png','jepg') then 'image'
 when postfix in ('MP4','mp4') then 'video' else 'file' end type2
 when postfix in ('MP4','mp4') then 'video' else 'file' end type2
-from tattachment where ownertable='HYORDERNODE' and ownerid =$ownerid$
+from tattachment where ownertable='HYORDERNODE' and ownerid =$ownerid$ order by tattachmentid