From dc8367b8e744f9f02b606597a2c3a3b0783afc19 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期六, 13 四月 2024 14:44:47 +0800 Subject: [PATCH] 地图数据json文件改为常量存储 --- src/main/java/com/zy/asrs/entity/LocDetlWarningDTO.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/LocDetlWarningDTO.java b/src/main/java/com/zy/asrs/entity/LocDetlWarningDTO.java index a2ab1c4..665d316 100644 --- a/src/main/java/com/zy/asrs/entity/LocDetlWarningDTO.java +++ b/src/main/java/com/zy/asrs/entity/LocDetlWarningDTO.java @@ -34,15 +34,17 @@ private String specs; @ExcelProperty("鎵规") private String batch; - @ExcelProperty("璐т富") + @ExcelProperty("璐т富Id") private String owner; - @ExcelProperty("搴撳瓨涓婇檺") + @ExcelProperty("璐т富") + private String ownerName; +// @ExcelProperty("搴撳瓨涓婇檺") private String inventoryMax; - @ExcelProperty("搴撳瓨涓嬮檺") +// @ExcelProperty("搴撳瓨涓嬮檺") private String inventoryMin; @ExcelProperty("搴撻緞涓婇檺") private String inventoryAgeMax; - @ExcelProperty("搴撳瓨鎬绘暟閲�") +// @ExcelProperty("搴撳瓨鎬绘暟閲�") private Integer countAnfme; @ExcelProperty("鍦ㄥ簱澶╂暟") private Integer diffTime; @@ -63,6 +65,15 @@ return null; } + public String getOwnerName(){ + LocOwnerService service = SpringUtils.getBean(LocOwnerService.class); + LocOwner locOwner = service.selectById(this.owner); + if (!Cools.isEmpty(locOwner)){ + return String.valueOf(locOwner.getOwner()); + } + return null; + } + public void sync(Object source) { Synchro.Copy(source, this); } -- Gitblit v1.9.1