Parcourir la source

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

18339543638 il y a 2 ans
Parent
commit
4adcc907f1

+ 26 - 0
tr-modules-api/tr-module-export-api/pom.xml

@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>tr-modules-api</artifactId>
+        <groupId>cn.tr</groupId>
+        <version>0.0.9</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>tr-module-export-api</artifactId>
+
+
+    <dependencies>
+        <dependency>
+            <groupId>cn.tr</groupId>
+            <artifactId>tr-framework</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>easyexcel</artifactId>
+        </dependency>
+    </dependencies>
+</project>

+ 2 - 0
tr-modules-api/tr-module-system-api/pom.xml

@@ -16,6 +16,8 @@
             <groupId>cn.tr</groupId>
             <groupId>cn.tr</groupId>
             <artifactId>tr-framework</artifactId>
             <artifactId>tr-framework</artifactId>
         </dependency>
         </dependency>
+
+
     </dependencies>
     </dependencies>
 
 
 </project>
 </project>

+ 1 - 2
tr-modules-api/tr-module-system-api/src/main/java/cn/tr/module/api/sys/log/annotation/OperateLog.java

@@ -1,7 +1,6 @@
 package cn.tr.module.api.sys.log.annotation;
 package cn.tr.module.api.sys.log.annotation;
 
 
 import cn.tr.module.api.sys.log.enums.LoginType;
 import cn.tr.module.api.sys.log.enums.LoginType;
-import io.swagger.annotations.ApiOperation;
 
 
 import java.lang.annotation.ElementType;
 import java.lang.annotation.ElementType;
 import java.lang.annotation.Retention;
 import java.lang.annotation.Retention;
@@ -22,7 +21,7 @@ public @interface OperateLog {
     /**
     /**
      * 操作名
      * 操作名
      *
      *
-     * 为空时,会尝试读取 {@link ApiOperation#value()} ()} 属性
+     * 为空时,会尝试读取 {@link io.swagger.annotations.ApiOperation#value()} ()} 属性
      */
      */
     String name() default "";
     String name() default "";
 
 

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

@@ -26,11 +26,6 @@
             <artifactId>tr-spring-boot-starter-plugin-mybatis</artifactId>
             <artifactId>tr-spring-boot-starter-plugin-mybatis</artifactId>
         </dependency>
         </dependency>
 
 
-        <dependency>
-            <groupId>cn.tr</groupId>
-            <artifactId>tr-module-system-api</artifactId>
-        </dependency>
-
         <dependency>
         <dependency>
             <groupId>cn.tr</groupId>
             <groupId>cn.tr</groupId>
             <artifactId>tr-spring-boot-starter-plugin-satoken</artifactId>
             <artifactId>tr-spring-boot-starter-plugin-satoken</artifactId>
@@ -46,11 +41,6 @@
             <artifactId>tr-spring-boot-starter-plugin-web</artifactId>
             <artifactId>tr-spring-boot-starter-plugin-web</artifactId>
         </dependency>
         </dependency>
 
 
-        <dependency>
-            <groupId>cn.tr</groupId>
-            <artifactId>tr-spring-boot-starter-plugin-import-export</artifactId>
-        </dependency>
-
         <dependency>
         <dependency>
             <groupId>cn.tr</groupId>
             <groupId>cn.tr</groupId>
             <artifactId>tr-module-export-api</artifactId>
             <artifactId>tr-module-export-api</artifactId>

+ 46 - 0
tr-plugins/tr-spring-boot-starter-plugin-import-export/src/main/java/cn/tr/plugin/excel/config/ExcelThreadFactory.java

@@ -0,0 +1,46 @@
+package cn.tr.module.excel.core.config;
+
+import org.jetbrains.annotations.NotNull;
+
+import java.util.concurrent.ThreadFactory;
+import java.util.concurrent.atomic.AtomicInteger;
+
+/**
+ * @ClassName : ExcelThreadFactory
+ * @Description :
+ * @Author : LF
+ * @Date: 2023年03月15日
+ */
+public class ExcelThreadFactory implements ThreadFactory {
+    private static final AtomicInteger poolNumber = new AtomicInteger(1);
+    private final ThreadGroup group;
+    private final AtomicInteger threadNumber = new AtomicInteger(1);
+    private final String namePrefix;
+
+    public ExcelThreadFactory() {
+
+        SecurityManager s = System.getSecurityManager();
+        group = (s != null) ? s.getThreadGroup() :
+                Thread.currentThread().getThreadGroup();
+        namePrefix = "excel-export-" +
+                poolNumber.getAndIncrement() +
+                "-thread-";
+    }
+
+
+    @Override
+    public Thread newThread(@NotNull Runnable r) {
+        Thread t = new Thread(group, r,
+                namePrefix + threadNumber.getAndIncrement(),
+                0);
+        if (t.isDaemon()){
+            t.setDaemon(false);
+        }
+        if (t.getPriority() != Thread.NORM_PRIORITY){
+            t.setPriority(Thread.NORM_PRIORITY);
+        }
+        return t;
+    }
+
+
+}

+ 0 - 4
tr-test/pom.xml

@@ -98,10 +98,6 @@
             <artifactId>tr-spring-boot-starter-plugin-biz-tenant</artifactId>
             <artifactId>tr-spring-boot-starter-plugin-biz-tenant</artifactId>
         </dependency>
         </dependency>
 
 
-        <dependency>
-            <groupId>cn.tr</groupId>
-            <artifactId>tr-spring-boot-starter-plugin-biz-excel</artifactId>
-        </dependency>
     </dependencies>
     </dependencies>