|
@@ -745,7 +745,7 @@ public class HyWorkOrder extends Controller {
|
|
|
Rows rows = dbConnect.runSqlQuery(factory.getSQL());
|
|
Rows rows = dbConnect.runSqlQuery(factory.getSQL());
|
|
|
if(rows.isEmpty())return getReturnObject_err("ûÓд˹¤µ¥").toString();
|
|
if(rows.isEmpty())return getReturnObject_err("ûÓд˹¤µ¥").toString();
|
|
|
Row row = rows.get(0);
|
|
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"));
|
|
"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);
|
|
row.put("url",url);
|
|
|
|
|
|