From 571a106d5537acc98d5a0f65444c4172b945cf8d Mon Sep 17 00:00:00 2001 From: lsh <lsh> Date: 星期四, 25 七月 2024 17:11:55 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/entity/Order.java | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/Order.java b/src/main/java/com/zy/asrs/entity/Order.java index 99abc64..3f535cb 100644 --- a/src/main/java/com/zy/asrs/entity/Order.java +++ b/src/main/java/com/zy/asrs/entity/Order.java @@ -437,5 +437,14 @@ return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); } + public String getTkType(){ + DocTypeService service = SpringUtils.getBean(DocTypeService.class); + DocType docType = service.selectById(this.docType); + if (!Cools.isEmpty(docType)){ + return docType.getPakout().toString(); + } + return "0"; + } + } -- Gitblit v1.9.1