From a5a5da73dec49c5cd23761edad8be98cde8a3b74 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期六, 31 八月 2024 17:24:23 +0800
Subject: [PATCH] 平台调整

---
 ycl-server/src/main/java/com/ycl/platform/service/impl/PlatformServiceImpl.java |   24 +++++++++++++-----------
 1 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/service/impl/PlatformServiceImpl.java b/ycl-server/src/main/java/com/ycl/platform/service/impl/PlatformServiceImpl.java
index b1bb3f9..3f33e78 100644
--- a/ycl-server/src/main/java/com/ycl/platform/service/impl/PlatformServiceImpl.java
+++ b/ycl-server/src/main/java/com/ycl/platform/service/impl/PlatformServiceImpl.java
@@ -49,18 +49,20 @@
         Date now = new Date();
         entity.setCreateTime(now);
         entity.setUpdateTime(now);
+        entity.setArea(form.getAreaList().stream().collect(Collectors.joining(",")));
         baseMapper.insert(entity);
-        if (! CollectionUtils.isEmpty(form.getDeployList())) {
-            List<Platform> childList = form.getDeployList().stream().map(deploy -> {
-                Platform child = new Platform();
-                BeanUtils.copyProperties(deploy, child);
-                child.setParentId(entity.getId());
-                child.setCreateTime(now);
-                child.setUpdateTime(now);
-                return child;
-            }).collect(Collectors.toList());
-            this.saveBatch(childList);
-        }
+//        if (! CollectionUtils.isEmpty(form.getDeployList())) {
+//            List<Platform> childList = form.getDeployList().stream().map(deploy -> {
+//                Platform child = new Platform();
+//                BeanUtils.copyProperties(deploy, child);
+//                child.setPlatformName(entity.getPlatformName());
+//                child.setParentId(entity.getId());
+//                child.setCreateTime(now);
+//                child.setUpdateTime(now);
+//                return child;
+//            }).collect(Collectors.toList());
+//            this.saveBatch(childList);
+//        }
         return Result.ok("娣诲姞鎴愬姛");
     }
 

--
Gitblit v1.8.0