Ver Fonte

fix(重新整理模块):
删除无用模块

18339543638 há 2 anos atrás
pai
commit
629fbf0bad

+ 0 - 7
tr-dependencies/pom.xml

@@ -352,13 +352,6 @@
                 <version>${revision}</version>
             </dependency>
 
-            <!--日志记录插件-->
-            <dependency>
-                <groupId>cn.tr</groupId>
-                <artifactId>tr-spring-boot-starter-plugin-operatelog</artifactId>
-                <version>${revision}</version>
-            </dependency>
-
             <!--编号生成插件-->
             <dependency>
                 <groupId>cn.tr</groupId>

+ 6 - 0
tr-modules/tr-module-export/pom.xml

@@ -41,6 +41,12 @@
             <artifactId>tr-spring-boot-starter-plugin-web</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>cn.tr</groupId>
+            <artifactId>tr-spring-boot-starter-plugin-import-export</artifactId>
+            <version>0.0.9</version>
+        </dependency>
+
         <dependency>
             <groupId>cn.tr</groupId>
             <artifactId>tr-module-export-api</artifactId>

+ 4 - 0
tr-modules/tr-module-export/src/main/java/cn/tr/module/excel/sheet/controller/SysExportSheetController.java

@@ -1,6 +1,7 @@
 package cn.tr.module.excel.sheet.controller;
 
 import com.alibaba.excel.EasyExcel;
+import com.alibaba.excel.ExcelWriter;
 import com.alibaba.excel.annotation.ExcelProperty;
 import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
 import cn.tr.core.pojo.CommonResult;
@@ -16,6 +17,7 @@ import cn.tr.module.excel.sheet.service.ISysExportSheetService;
 import cn.tr.plugin.mybatis.base.BaseController;
 import org.springframework.web.bind.annotation.*;
 
+import java.io.ByteArrayOutputStream;
 import java.lang.reflect.InvocationTargetException;
 import java.util.Collections;
 
@@ -41,6 +43,8 @@ public class SysExportSheetController extends BaseController{
     }
 
     public static void main(String[] args) throws InvocationTargetException, NoSuchMethodException, InstantiationException, IllegalAccessException {
+        ByteArrayOutputStream out = new ByteArrayOutputStream();
+        ExcelWriter build = EasyExcel.write(out).build();
         EasyExcel.write("C:\\Users\\JR\\Desktop\\test1.xls", User.class).inMemory(true).sheet(0,"模板")
                 .doWrite(Collections.singleton(User.class));
     }

+ 0 - 5
tr-modules/tr-module-quartz/pom.xml

@@ -41,11 +41,6 @@
             <artifactId>tr-spring-boot-starter-plugin-satoken</artifactId>
         </dependency>
 
-        <dependency>
-            <groupId>cn.tr</groupId>
-            <artifactId>tr-spring-boot-starter-plugin-operatelog</artifactId>
-        </dependency>
-
         <dependency>
             <groupId>org.apache.commons</groupId>
             <artifactId>commons-lang3</artifactId>

+ 0 - 5
tr-modules/tr-module-system/pom.xml

@@ -54,11 +54,6 @@
             <artifactId>tr-spring-boot-starter-plugin-biz-tenant</artifactId>
         </dependency>
 
-        <dependency>
-            <groupId>cn.tr</groupId>
-            <artifactId>tr-spring-boot-starter-plugin-operatelog</artifactId>
-        </dependency>
-
         <dependency>
             <groupId>cn.tr</groupId>
             <artifactId>tr-spring-boot-starter-plugin-biz-bean-mapper</artifactId>

+ 0 - 40
tr-modules/tr-module-system/src/main/java/cn/tr/module/sys/core/excel/DictExcelHandlerAdapter.java

@@ -1,40 +0,0 @@
-package cn.tr.module.sys.core.excel;
-
-import cn.hutool.core.collection.CollectionUtil;
-import cn.hutool.core.util.StrUtil;
-import cn.hutool.extra.spring.SpringUtil;
-import cn.tr.module.sys.dict.dto.SysDictItemSmallDTO;
-import cn.tr.module.sys.dict.service.ISysDictItemService;
-import cn.tr.plugin.excel.config.ExcelHandlerAdapter;
-
-import java.util.List;
-
-/**
- * @ClassName : DictExcelHandlerAdapter
- * @Description :
- * @Author : LF
- * @Date: 2023年04月03日
- */
-
-public class DictExcelHandlerAdapter implements ExcelHandlerAdapter {
-    private ISysDictItemService dictItemService;
-
-    public DictExcelHandlerAdapter() {
-        dictItemService=SpringUtil.getBean(ISysDictItemService.class);
-    }
-
-    @Override
-    public Object format(Object value, String[] args) {
-        if(value==null||args==null||args.length==0){
-            return null;
-        }
-        String dictCode = args[0];
-        List<SysDictItemSmallDTO> dictItems = dictItemService.selectDictItemsByDictCode(dictCode);
-        if(CollectionUtil.isEmpty(dictItems)){
-            return null;
-        }
-        return dictItems.stream()
-                .filter(item-> StrUtil.equals(String.valueOf(value),item.getValue()))
-                .map(SysDictItemSmallDTO::getLabel);
-    }
-}