sjw 4 лет назад
Родитель
Сommit
ae47b13468

+ 1 - 1
src/rest/openapi/restcontroller/hyworkorder/webapp/workorder/HyWorkOrder.java

@@ -745,7 +745,7 @@ public class HyWorkOrder extends Controller {
         Rows rows = dbConnect.runSqlQuery(factory.getSQL());
         if(rows.isEmpty())return getReturnObject_err("ûÓд˹¤µ¥").toString();
         Row row = rows.get(0);
-        Rows url = dbConnect.runSqlQuery("select tattachmentid,fdocument,fobsurl,type,UPPER(postfix) postfix,case when postfix in ('JPG','PNG','JEPG','jpg','png','jepg') then 'image'\n" +
+        Rows url = dbConnect.runSqlQuery("select tattachmentid,fdocument,fobsurl url,type,UPPER(postfix) postfix,case when postfix in ('JPG','PNG','JEPG','jpg','png','jepg') then 'image'\n" +
                 "when postfix in ('MP4','mp4') then 'video' else 'file' end type2 from tattachment where ownertable='HYWORKORDER' and ownerid=" + row.getInteger("ownerid"));
         row.put("url",url);