From 68fd566d21b3efc3a670a5295289b1801f5a4155 Mon Sep 17 00:00:00 2001
From: ludc <ludc@vci-tech.com>
Date: 星期四, 16 一月 2025 18:18:55 +0800
Subject: [PATCH] 流程部署接口上传

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebFlowController.java |   24 +++++++++++++++++++++---
 1 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebFlowController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebFlowController.java
index 766d249..e3eb429 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebFlowController.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebFlowController.java
@@ -1,7 +1,7 @@
 package com.vci.web.controller;
 
 import com.vci.corba.wf.data.ProcessCategoryInfo;
-import com.vci.dto.OsEnumDTO;
+import com.vci.pagemodel.DeployProcessVO;
 import com.vci.starter.web.annotation.log.VciBusinessLog;
 import com.vci.starter.web.pagemodel.BaseQueryObject;
 import com.vci.starter.web.pagemodel.BaseResult;
@@ -61,9 +61,9 @@
      */
     @GetMapping( "/getProcessCategoriesByPage")
     @VciBusinessLog(operateName = "娴佺▼鍒嗙被鍒嗛〉鏌ヨ")
-    public BaseResult<DataGrid<ProcessCategoryInfo>> getProcessCategoriesByPage(BaseQueryObject baseQueryObject){
+    public BaseResult getProcessCategoriesByPage(BaseQueryObject baseQueryObject){
         try {
-            return BaseResult.dataList(webFlowServiceI.getProcessCategoriesByPage(baseQueryObject));
+            return BaseResult.dataGrid(webFlowServiceI.getProcessCategoriesByPage(baseQueryObject));
         } catch (Exception e) {
             e.printStackTrace();
             String exceptionMessage = "娴佺▼鍒嗙被鍒嗛〉鏌ヨ鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
@@ -126,4 +126,22 @@
         }
     }
 
+    /**
+     * 閮ㄧ讲娴佺▼
+     * @param deployProcessVO
+     * @return
+     */
+    @PostMapping( "/deployProcess")
+    @VciBusinessLog(operateName = "閮ㄧ讲娴佺▼")
+    public BaseResult deployProcess(@RequestBody DeployProcessVO deployProcessVO) {
+        try {
+            return webFlowServiceI.deployProcess(deployProcessVO);
+        }catch (Exception e) {
+            e.printStackTrace();
+            String exceptionMessage = "娴佺▼閮ㄧ讲鎴愬姛鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
+            logger.error(exceptionMessage);
+            return BaseResult.fail(exceptionMessage);
+        }
+    }
+
 }

--
Gitblit v1.9.3