diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java index cedb7b6..d728b31 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java @@ -503,6 +503,14 @@ public class ApiService { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); // 格式化Date对象为字符串 value = sdf.format(bizdate); + } else if ("detaildatetime".equals(parts[0])) { + Date bizdate = billObject.getDate("detaildatetime"); + // 创建一个SimpleDateFormat对象,指定格式为"yyyy-MM-dd" + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + // 格式化Date对象为字符串 + value = sdf.format(bizdate); + } else if ("uploadFileName".equals(parts[0])) { + value = ReceiptPrintHelper.getRealUploadUrl(billObject); } else if ("bankpaystatus".equals(parts[0])) { String bankpaystatus = billObject.getString(parts[0]); switch (bankpaystatus) { diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java index 5088af7..76d0caa 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/form/ApiMappingBillPlugin.java @@ -107,7 +107,8 @@ public class ApiMappingBillPlugin extends AbstractFormPlugin implements Plugin { // 电子回单查询 case "bei_elecreceipt": DynamicObject[] objects4 = BusinessDataServiceHelper.load("bei_elecreceipt", - "id,billno,shkd_pushstatus,fileserverurl" + "id,billno,shkd_pushstatus,fileserverurl,bizdate,oppbankname,description,company,oppbanknumber," + + "detaildatetime,accountbank,amount,use,debitamount,creditamount" , new QFilter("billno", QCP.equals, billNumber).toArray()); billObject = objects4[0]; logger.info("获取银企交易明细查询推送对象 → billObject:{}", billObject);