From 41c8c578b0542292c64fc42177f46ea6f36b553f Mon Sep 17 00:00:00 2001
From: bluejay <253316343@qq.com>
Date: 星期五, 11 四月 2025 16:25:13 +0800
Subject: [PATCH] 解决日期传值问题

---
 aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsGasPipingPlanController.java |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsGasPipingPlanController.java b/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsGasPipingPlanController.java
index a41d774..343911d 100644
--- a/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsGasPipingPlanController.java
+++ b/aps-modules/aps-core/src/main/java/com/aps/core/controller/ApsGasPipingPlanController.java
@@ -54,6 +54,20 @@
     {
 //        startPage();
         List<ApsGasPipingPlan> list = apsGasPipingPlanService.selectApsGasPipingPlanList(apsGasPipingPlan);
+        List<SysDictData> suspendedDic = DictUtils.getDictCache("aps_is_suspended");
+        List<SysDictData> businessTypeDic = DictUtils.getDictCache("aps_business_type");
+        List<SysDictData> documentStatusDic = DictUtils.getDictCache("aps_document_status");
+        List<SysDictData> accountDic = DictUtils.getDictCache("aps_account");
+        list.parallelStream().forEach(plan->{
+            documentStatusDic.stream().filter(x -> x.getDictValue().equals( plan.getDocumentStatus().trim()))
+                    .findFirst().ifPresent(sysDictData -> plan.setDocumentStatus(sysDictData.getDictLabel()));
+            accountDic.stream().filter(x -> x.getDictValue().equals( plan.getAccount().trim()))
+                    .findFirst().ifPresent(sysDictData -> plan.setAccount(sysDictData.getDictLabel()));
+            businessTypeDic.stream().filter(x -> x.getDictValue().equals(plan.getBusinessType().trim()))
+                    .findFirst().ifPresent(sysDictData -> plan.setBusinessType(sysDictData.getDictLabel()));
+            suspendedDic.stream().filter(x -> x.getDictValue().equals( plan.getIsSuspended()))
+                    .findFirst().ifPresent(sysDictData -> plan.setIsSuspended(sysDictData.getDictLabel()));
+        });
         return getDataTable(list);
     }
 

--
Gitblit v1.9.3