From eada8c650d43765a6bf0993af5fb771b8c0b363c Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 29 二月 2024 21:05:16 +0800
Subject: [PATCH] 代码提交

---
 Source/UBCS/pom.xml                                                                                             |    4 ++--
 Source/UBCS-WEB/src/views/code/code.vue                                                                         |    5 ++---
 Source/UBCS/ubcs-service/ubcs-deploy/src/main/java/com/vci/ubcs/deploy/service/impl/DeployAppsServiceImpl.java  |   13 +++++++++++--
 Source/UBCS-WEB/src/views/system/deploy.vue                                                                     |    3 ++-
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java |    4 ----
 Source/UBCS/ubcs-service/ubcs-code/pom.xml                                                                      |    4 ++++
 Source/UBCS-WEB/src/const/code/mdmrule.js                                                                       |    2 +-
 7 files changed, 22 insertions(+), 13 deletions(-)

diff --git a/Source/UBCS-WEB/src/const/code/mdmrule.js b/Source/UBCS-WEB/src/const/code/mdmrule.js
index 085bcf5..cd3df5e 100644
--- a/Source/UBCS-WEB/src/const/code/mdmrule.js
+++ b/Source/UBCS-WEB/src/const/code/mdmrule.js
@@ -2,7 +2,7 @@
   tip: false,
   searchShow: true,
   searchMenuSpan: 6,
-  height:327,
+  height:265,
   border: true,
   index: true,
   viewBtn: false,
diff --git a/Source/UBCS-WEB/src/views/code/code.vue b/Source/UBCS-WEB/src/views/code/code.vue
index fad06a0..8dd7514 100644
--- a/Source/UBCS-WEB/src/views/code/code.vue
+++ b/Source/UBCS-WEB/src/views/code/code.vue
@@ -2,7 +2,7 @@
   <basic-container class="code-total" style=" height: 100%">
     <!-- 缂栫爜瑙勫垯淇℃伅灞曠ず鍖哄煙 -->
     <basic-container class="code-rule-container">
-      <div style="height: 55vh;overflow: auto;">
+      <div style="height: 50vh;overflow: auto;">
         <p
           style="
           margin-top: -5px;
@@ -142,7 +142,6 @@
           </template>
         </avue-crud>
       </div>
-
     </basic-container>
 
     <!-- 楂樼骇鏌ヨ瀵硅瘽妗� -->
@@ -220,7 +219,7 @@
 
     <!-- 鍩虹鐮佹灞曠ず鍖哄煙 -->
     <basic-container class="code-basicsec-container">
-      <div style="height: 23.5vh;overflow: auto">
+      <div style="height: 35vh;overflow: auto">
         <p
           style="margin-top: -5px;
           margin-bottom: 4px;
diff --git a/Source/UBCS-WEB/src/views/system/deploy.vue b/Source/UBCS-WEB/src/views/system/deploy.vue
index a3d857c..04a5186 100644
--- a/Source/UBCS-WEB/src/views/system/deploy.vue
+++ b/Source/UBCS-WEB/src/views/system/deploy.vue
@@ -55,6 +55,7 @@
 <script>
 import { getApplications,saveOrGetServiceConfInfo,saveOrUpdateServiceInfo,addSave,executeCmd } from "@/api/system/deploy";
 import moment from "moment";
+import {mapGetters} from "vuex";
 export default {
     data() {
         return {
@@ -69,7 +70,7 @@
       
     },
     computed: {
-        ...mapGetters(["userInfo", "permission"]),
+        ...mapGetters(["permission"]),
         permissionList() {
             return {
                 upload: this.vaildData(this.permission.deploy.deploy_upload, false),
diff --git a/Source/UBCS/pom.xml b/Source/UBCS/pom.xml
index 6cbe0a9..c58d13a 100644
--- a/Source/UBCS/pom.xml
+++ b/Source/UBCS/pom.xml
@@ -108,11 +108,11 @@
             <resource>
                 <directory>src/main/resources</directory>
                 <excludes>
-                    <exclude>bootstrap.yml</exclude>
+                    <!--<exclude>bootstrap.yml</exclude>
                     <exclude>application.yml</exclude>
                     <exclude>application-dev.yml</exclude>
                     <exclude>application-test.yml</exclude>
-                    <exclude>application-prop.yml</exclude>
+                    <exclude>application-prop.yml</exclude>-->
                 </excludes>
             </resource>
             <resource>
diff --git a/Source/UBCS/ubcs-service/ubcs-code/pom.xml b/Source/UBCS/ubcs-service/ubcs-code/pom.xml
index aed5804..698c2fe 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/pom.xml
+++ b/Source/UBCS/ubcs-service/ubcs-code/pom.xml
@@ -153,6 +153,10 @@
             <version>3.0.1.RELEASE</version>
             <scope>compile</scope>
         </dependency>
+        <dependency>
+            <groupId>org.springframework</groupId>
+            <artifactId>spring-test</artifactId>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java
index 9864832..0289569 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeDuckingSyncServiceImpl.java
@@ -72,11 +72,7 @@
 import org.springframework.web.context.request.ServletRequestAttributes;
 
 import javax.annotation.Resource;
-import javax.jws.WebMethod;
 import javax.servlet.http.HttpServletRequest;
-import javax.xml.ws.WebServiceContext;
-import javax.xml.ws.handler.MessageContext;
-import java.nio.charset.StandardCharsets;
 import java.text.SimpleDateFormat;
 import java.util.*;
 import java.util.concurrent.atomic.AtomicReference;
diff --git a/Source/UBCS/ubcs-service/ubcs-deploy/src/main/java/com/vci/ubcs/deploy/service/impl/DeployAppsServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-deploy/src/main/java/com/vci/ubcs/deploy/service/impl/DeployAppsServiceImpl.java
index af4bb01..6ac5349 100644
--- a/Source/UBCS/ubcs-service/ubcs-deploy/src/main/java/com/vci/ubcs/deploy/service/impl/DeployAppsServiceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-deploy/src/main/java/com/vci/ubcs/deploy/service/impl/DeployAppsServiceImpl.java
@@ -179,12 +179,12 @@
 		}
 		// 鏈粠搴撲腑鏌ヨ鍒帮紝闇�瑕佺敓鎴愭湇鍔′俊鎭繚瀛橀粯璁や俊鎭埌搴撲腑
 		DeployApps defaultDeployApps = new DeployApps();
-		defaultDeployApps.setLogPath(PARENTPATH + deployAppsVO.getName().replace("-","_") + LOGPATH);
+		defaultDeployApps.setLogPath(PARENTPATH + SEPARATOR + deployAppsVO.getName().replace("-","_") + LOGPATH);
 		defaultDeployApps.setServerName(deployAppsVO.getName());
 		defaultDeployApps.setStartCmd(CmdConfigEnum.START_CMD.getValue() + deployAppsVO.getName());
 		defaultDeployApps.setStopCmd(CmdConfigEnum.STOP_CMD.getValue() + deployAppsVO.getName());
 		defaultDeployApps.setRestartCmd(CmdConfigEnum.RESTART_CMD.getValue() + deployAppsVO.getName());
-		defaultDeployApps.setServerPath(PARENTPATH + deployAppsVO.getName().replace("-","_"));
+		defaultDeployApps.setServerPath(PARENTPATH + SEPARATOR + deployAppsVO.getName().replace("-","_"));
 		int eft = deployAppsMapper.insert(defaultDeployApps);
 		if (!SqlHelper.retBool(eft)) {
 			throw new ServiceException("鐢熸垚榛樿鏈嶅姟淇℃伅鍒板簱涓椂澶辫触锛�");
@@ -357,6 +357,15 @@
 			}
 			// 绛夊緟鍛戒护鎵ц瀹屾垚
 			int exitCode = process.waitFor();
+			// 璇诲彇鍛戒护鎵ц鐨勯敊璇緭鍑烘祦
+			BufferedReader errorReader = new BufferedReader(new InputStreamReader(process.getErrorStream()));
+			StringBuilder errorOutput = new StringBuilder();
+			String errorLine;
+			while ((errorLine = errorReader.readLine()) != null) {
+				errorOutput.append(errorLine).append("\n");
+			}
+			String errorOutputString = errorOutput.toString();
+			log.info("閿欒杈撳嚭锛�" + errorOutputString);
 			log.info("鍛戒护鎵ц缁撴灉锛�" + output.toString()+":"+exitCode);
 			return output.toString();
 		}catch (IOException | InterruptedException e){

--
Gitblit v1.9.3