From 34c25ddf37a3eb8da9efb04efedad089f13efe83 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 24 七月 2024 18:20:27 +0800
Subject: [PATCH] 部门导入调整,按照部门名称/实现层级关系。枚举导入功能接口上传,属性池添加新增、查询、修改、导出、查看应用范围等接口。业务类型、链接类型、枚举类型增加等接口属性是否产生数据检查、根据属性名修改业务类型和连接类型中对应属性方法,以及属性池中需要的一些下拉查询接口。

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

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebEnumController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebEnumController.java
index d9a5837..e5c3025 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebEnumController.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/WebEnumController.java
@@ -29,6 +29,7 @@
 import java.io.IOException;
 import java.util.Date;
 import java.util.List;
+import java.util.Map;
 
 
 /**
@@ -58,7 +59,6 @@
 	 * @return 鏋氫妇鐨勪笅鎷夊��
 	 */
 	@VciBusinessLog(notStore=true,operateName="鑾峰彇鏋氫妇")
-	@VciUnCheckRight
 	@GetMapping("/getEnum")
 	public BaseResult<List<KeyValue>> getEnum(String comboxKey){
 		return BaseResult.success(enumService.getEnum(comboxKey));
@@ -96,6 +96,24 @@
 	@GetMapping("/getDataEnum")
 	public BaseResult<List<KeyValue>> getDataEnum(String oid,String btmname){
 		return BaseResult.success(enumService.getDataEnum(oid,btmname));
+	}
+
+	/**
+	 * 鏍规嵁鏋氫妇绫诲瀷鑾峰彇鏋氫妇
+	 * @param enumType 鏌ヨ鏉′欢name
+	 * @return 鍒楄〃鐨勫唴瀹�
+	 */
+	@GetMapping( "/getEnumMapByType")
+	@VciBusinessLog(operateName = "鏋氫妇鍒楄〃")
+	public BaseResult getEnumMapByType(String enumType) {
+		try {
+			return BaseResult.dataList(enumService.getEnumMapByType(enumType));
+		}catch (Exception e) {
+			e.printStackTrace();
+			String exceptionMessage = "鏋氫妇绠$悊鍒楄〃鏌ヨ鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
+			logger.error(exceptionMessage);
+			return BaseResult.fail(exceptionMessage);
+		}
 	}
 
 	/**
@@ -196,7 +214,6 @@
 	 */
 	@GetMapping( "/exportEnumTypes")
 	@VciBusinessLog(operateName = "瀵煎嚭鏋氫妇绫诲瀷")
-	@VciUnCheckRight
 	public void exportEnumTypes(String exportFileName,String enumNames, HttpServletResponse response){
 		try {
 			String excelPath = enumService.exportEnumTypes(exportFileName,enumNames);
@@ -220,7 +237,6 @@
 	 */
 	@GetMapping( "/downloadEnumTemplate")
 	@VciBusinessLog(operateName = "瀵煎嚭鏋氫妇绫诲瀷")
-	@VciUnCheckRight
 	public void downloadEnumTemplate(String exportFileName, HttpServletResponse response){
 		try {
 			String excelPath = enumService.downloadEnumTemplate(exportFileName);

--
Gitblit v1.9.3