From d538a62999e202ce4c5a10429402a82d95494755 Mon Sep 17 00:00:00 2001
From: zm <2369059705qq.com>
Date: 星期三, 04 九月 2024 17:16:37 +0800
Subject: [PATCH] 文件归档定时任务

---
 src/main/java/com/product/file/controller/DocumentDirectoryController.java |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/product/file/controller/DocumentDirectoryController.java b/src/main/java/com/product/file/controller/DocumentDirectoryController.java
index f6c645a..41573e4 100644
--- a/src/main/java/com/product/file/controller/DocumentDirectoryController.java
+++ b/src/main/java/com/product/file/controller/DocumentDirectoryController.java
@@ -336,4 +336,32 @@
 					DocumentCode.DOCUMENT_CATALOG_GET_FAIL.getText());
 		}
 	}
+
+	/**
+	 * 淇濆瓨鏂囨。褰掓。閰嶇疆
+	 * @param request
+	 * @return
+	 */
+	@RequestMapping(value = "/save-file-config/{version}", method = RequestMethod.POST)
+	@ApiVersion(1)
+	public String saveFileConfig(HttpServletRequest request) {
+		try {
+			FieldSetEntity fse = BaseUtil.getFieldSetEntity(request);
+			IDocumentDirectoryService service = (IDocumentDirectoryService) getProxyInstance(documentDirectoryService);
+			if(service.saveFileConfig(fse)) {
+				return OK();
+			}
+			return error(DocumentCode.DOCUMENT_CATALOG_SAVE_FAIL.getValue(),
+					DocumentCode.DOCUMENT_CATALOG_SAVE_FAIL.getText());
+		} catch (BaseException e) {
+			e.printStackTrace();
+			SpringMVCContextHolder.getSystemLogger().error(e);
+			return this.error(e);
+		} catch (Exception e) {
+			e.printStackTrace();
+			SpringMVCContextHolder.getSystemLogger().error(e);
+			return error(DocumentCode.DOCUMENT_CATALOG_SAVE_FAIL.getValue(),
+					DocumentCode.DOCUMENT_CATALOG_SAVE_FAIL.getText());
+		}
+	}
 }

--
Gitblit v1.9.2