From 13b6ad41f0b057f8405f7976a990e9057547443a Mon Sep 17 00:00:00 2001 From: czt <czt18638530771@163.com> Date: 星期一, 09 六月 2025 20:01:00 +0800 Subject: [PATCH] 提交首页实现 --- igds-dzhwk-core/src/main/java/com/fzzy/igds/sys/DepotService.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/igds-dzhwk-core/src/main/java/com/fzzy/igds/sys/DepotService.java b/igds-dzhwk-core/src/main/java/com/fzzy/igds/sys/DepotService.java index 032dc06..0c688bb 100644 --- a/igds-dzhwk-core/src/main/java/com/fzzy/igds/sys/DepotService.java +++ b/igds-dzhwk-core/src/main/java/com/fzzy/igds/sys/DepotService.java @@ -261,6 +261,30 @@ } /** + * 鏍规嵁褰撳墠寤掗棿缂栫爜鑾峰彇涓嬪睘鎵�鏈変粨搴撲俊鎭� + * @param companyId + * @param ajdh + * @return + */ + public List<Depot> getCacheByAjdn(String companyId, String ajdh) { + //鑻ヤ粨搴撴湭閰嶇疆浠撴埧缂栫爜锛屽垯鐩存帴杩斿洖瀵瑰簲浠撳簱 + List<Depot> list = getCacheDepotList(companyId); + + if(null == list || list.isEmpty()){ + return null; + } + List<Depot> result = new ArrayList<>(); + for (Depot depot : list) { + if (StringUtils.isNotEmpty(depot.getGranaryId()) && ajdh.equals(depot.getGranaryId())) { + result.add(depot); + } + } + //閲嶆柊鎺掑簭 + Collections.sort(result, (p1, p2) -> p1.getOrderNum() - p2.getOrderNum()); + return result; + } + + /** * 鏍规嵁搴撳瓨淇℃伅鏇存柊浠撳簱淇℃伅 * @param data */ -- Gitblit v1.9.3