From e45b445e2145dbd83864eb28417ae02bffc1a900 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期一, 02 九月 2024 15:21:02 +0800
Subject: [PATCH] ui定义:UI上下文区域查询、增加、修改、删除、克隆接口上传

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/OsAttributeController.java |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/OsAttributeController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/OsAttributeController.java
index f33a04a..e4a6f13 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/OsAttributeController.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/OsAttributeController.java
@@ -52,7 +52,7 @@
      * @return 灞炴�х殑鏄剧ず瀵硅薄
      */
     @GetMapping("/gridAttribute")
-    @VciUnCheckRight
+    @VciBusinessLog(operateName = "灞炴�у垪琛�")
     public BaseResult<OsAttributeVO> gridAttribute(BaseQueryObject baseQueryObject){
         try {
             return BaseResult.dataGrid(attributeService.gridAttribute(baseQueryObject));
@@ -107,7 +107,6 @@
      */
     @PutMapping( "/updateAttribute")
     @VciBusinessLog(operateName = "淇敼灞炴��")
-    @VciUnCheckRight
     public BaseResult updateAttribute(@RequestBody OsAttributeDTO osAttributeDTO) {
         try {
             return attributeService.updateAttribute(osAttributeDTO) ? BaseResult.success("灞炴�т慨鏀规垚鍔燂紒"):BaseResult.fail("灞炴�т慨鏀瑰け璐ワ紒");
@@ -165,7 +164,7 @@
     @VciBusinessLog(operateName = "瀵煎嚭灞炴��")
     public void exportAttributes(String exportFileName,String attrNames, HttpServletResponse response){
         try {
-            String excelPath = attributeService.exportAttributes(exportFileName,attrNames);
+            String excelPath = attributeService.exportAttributes(exportFileName,attrNames,false);
             ControllerUtil.writeFileToResponse(response,excelPath);
         } catch (Exception e) {
             String msg = "瀵煎嚭鏋氫妇鏃跺嚭鐜伴敊璇紝鍘熷洜锛�" + VciBaseUtil.getExceptionMessage(e);
@@ -208,14 +207,14 @@
      * @return
      */
     @PostMapping("/importAttributes")
-    @VciUnCheckRight
+    @VciBusinessLog(operateName = "瀵煎叆灞炴��")
     public BaseResult importAttributes(MultipartFile file){
         String excelFileName = LocalFileUtil.getDefaultTempFolder() + File.separator + LocalFileUtil.getFileNameForIE(file.getOriginalFilename());
         File file1 = new File(excelFileName);
         try {
             file.transferTo(new File(excelFileName));
             if (file != null) {
-                return attributeService.importAttributes(file1);
+                return attributeService.importAttributes(file1,false);
             } else {
                 return BaseResult.fail(FrameWorkLangCodeConstant.IMPORT_FAIL, new String[]{"鏃犲鍏ョ殑鏂囦欢"});
             }

--
Gitblit v1.9.3