From c2fb54cf6794f250b1746c3f37e8403b516c1549 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期日, 08 十二月 2024 22:30:26 +0800
Subject: [PATCH] 导入规则

---
 ycl-server/src/main/java/com/ycl/platform/controller/ContractController.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/ContractController.java b/ycl-server/src/main/java/com/ycl/platform/controller/ContractController.java
index 4ebc0d6..fdc0114 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/ContractController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/ContractController.java
@@ -22,6 +22,7 @@
 import org.springframework.web.bind.annotation.*;
 import org.springframework.web.multipart.MultipartFile;
 
+import java.io.IOException;
 import java.util.List;
 
 /**
@@ -79,6 +80,17 @@
     }
 
     /**
+     * 鍚堝悓瀵煎叆瑙勫垯
+     *
+     * @return 瀵煎叆缁撴灉
+     */
+    @Log(title = "鍚堝悓瀵煎叆", businessType = BusinessType.IMPORT)
+    @PreAuthorize("@ss.hasPermi('system:user:import')")
+    @PostMapping("/updateRule")
+    public AjaxResult importRule(TContract tContract) throws IOException {
+        return tContractService.importRule(tContract.getFile(), tContract);
+    }
+    /**
      * 鑾峰彇銆愯濉啓鍔熻兘鍚嶇О銆戣缁嗕俊鎭�
      */
     @PreAuthorize("@ss.hasPermi('system:contract:query')")

--
Gitblit v1.8.0