|
|
@@ -699,10 +699,10 @@ public class HyWorkOrder extends Controller {
|
|
|
workorder.reset();
|
|
|
if(!workorder.isEmpty()){
|
|
|
PaoRemote pao = workorder.getPao(0);
|
|
|
- pao.setValue("fisscenefname",where.getBoolean("fisscenefname"),11l);
|
|
|
- pao.setValue("fistitem",where.getBoolean("fistitem"),11l);
|
|
|
+ pao.setValue("fisscenefname",true,11l);
|
|
|
+ pao.setValue("fistitem",where.getString("fistitem"),11l);
|
|
|
// pao.setValue("fisperiod",where.getBoolean("fisperiod"),11l);
|
|
|
- pao.setValue("fiserror",where.getBoolean("fiserror"),11l);
|
|
|
+ pao.setValue("fiserror",where.getString("fiserror"),11l);
|
|
|
if(where.containsKey("repairprice")){
|
|
|
pao.setValue("repairprice",where.getDouble("repairprice"),11l);
|
|
|
}
|
|
|
@@ -745,7 +745,8 @@ 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 from tattachment where ownertable='HYWORKORDER' and ownerid=" + row.getInteger("ownerid"));
|
|
|
+ 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" +
|
|
|
+ "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);
|
|
|
|
|
|
return getReturnObject_suc(row,false).toString();
|