From 70a9b5ca60bafe50da533513f99b990147968a93 Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期二, 09 十二月 2025 10:11:47 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10105/r/ERP_override
---
north-glass-erp/src/main/java/com/example/erp/service/pp/OtherSystemInfoService.java | 39 +++++++++++++++++++++++++++++++++++++++
1 files changed, 39 insertions(+), 0 deletions(-)
diff --git a/north-glass-erp/src/main/java/com/example/erp/service/pp/OtherSystemInfoService.java b/north-glass-erp/src/main/java/com/example/erp/service/pp/OtherSystemInfoService.java
new file mode 100644
index 0000000..9a10411
--- /dev/null
+++ b/north-glass-erp/src/main/java/com/example/erp/service/pp/OtherSystemInfoService.java
@@ -0,0 +1,39 @@
+package com.example.erp.service.pp;
+
+import com.example.erp.dto.otherSystem.GlassDetailList;
+import com.example.erp.dto.otherSystem.OptimizeProject;
+import com.example.erp.mapper.pp.OptimizeDetailMapper;
+import com.example.erp.mapper.pp.OptimizeLayoutMapper;
+import com.example.erp.mapper.pp.OptimizeProjectMapper;
+import com.example.erp.mapper.pp.OtherFlowCardMapper;
+import lombok.RequiredArgsConstructor;
+import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
+
+@RequiredArgsConstructor
+@Service
+public class OtherSystemInfoService {
+ private final OptimizeProjectMapper optimizeProjectMapper;
+ private final OptimizeDetailMapper optimizeDetailMapper;
+ private final OptimizeLayoutMapper optimizeLayoutMapper;
+ private final OtherFlowCardMapper otherFlowCardMapper;
+
+ @Transactional
+ public Object saveGlassInfo(OptimizeProject glassInfo) {
+ optimizeProjectMapper.insert(glassInfo);
+ for (GlassDetailList glassDetailList : glassInfo.getGlassDetailList()) {
+ optimizeDetailMapper.insert(glassDetailList);
+ }
+
+ glassInfo.getFlowCardList().forEach(flowCard -> {
+ otherFlowCardMapper.insert(flowCard);
+ });
+
+ glassInfo.getUpPattenList().forEach(upPatten -> {
+ optimizeLayoutMapper.insert(upPatten);
+ });
+
+ return true;
+
+ }
+}
--
Gitblit v1.8.0