main
黄海 6 months ago
parent 105cee4935
commit 1d79103aeb

3
.gitignore vendored

@ -5,4 +5,5 @@ QingLongJava.iml
/ETL/Data/ /ETL/Data/
/lib/*.jar /lib/*.jar
/WEB-INF/ /WEB-INF/
/target /target
./YunXiaoTools/target/

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ApifoxUploaderProjectSetting">
<option name="apiAccessToken" value="APS-Kc3YrVfGlTrgg0vw2qCGNG29jJ62vPRz" />
</component>
</project>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
<profile name="Maven default annotation processors profile" enabled="true">
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="YunXiaoTools" />
</profile>
</annotationProcessing>
</component>
<component name="JavacSettings">
<option name="ADDITIONAL_OPTIONS_OVERRIDE">
<module name="YunXiaoTools" options="-parameters" />
</option>
</component>
</project>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" defaultCharsetForPropertiesFiles="UTF-8" />
</project>

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="ali-maven" />
<option name="name" value="ali-maven" />
<option name="url" value="http://maven.aliyun.com/nexus/content/groups/public" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Central Repository" />
<option name="url" value="https://repo.maven.apache.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
</component>
</project>

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>
<option value="$PROJECT_DIR$/pom.xml" />
</list>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="21" project-jdk-type="JavaSDK" />
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/YunXiaoTools.iml" filepath="$PROJECT_DIR$/YunXiaoTools.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="AdditionalModuleElements">
<content url="file://$MODULE_DIR$" dumb="true">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
</content>
</component>
</module>

@ -0,0 +1,216 @@
<?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">
<modelVersion>4.0.0</modelVersion>
<groupId>dsideal</groupId>
<artifactId>QingLongTools</artifactId>
<version>1.0</version>
<!--使用jdk21进行编译-->
<properties>
<maven.compiler.source>21</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target>
</properties>
<!-- 使用阿里 maven 库 -->
<repositories>
<repository>
<id>ali-maven</id>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
<checksumPolicy>fail</checksumPolicy>
</snapshots>
</repository>
</repositories>
<dependencies>
<!--jfinal主框架-->
<dependency>
<groupId>com.jfinal</groupId>
<artifactId>jfinal</artifactId>
<version>5.2.3</version>
</dependency>
<dependency>
<groupId>com.jfinal</groupId>
<artifactId>jfinal-undertow</artifactId>
<version>3.6</version>
</dependency>
<dependency>
<groupId>com.jfinal</groupId>
<artifactId>cos</artifactId>
<version>2022.2</version>
</dependency>
<dependency>
<groupId>de.ruedigermoeller</groupId>
<artifactId>fst</artifactId>
<version>3.0.4-jdk17</version>
</dependency>
<dependency>
<groupId>com.huaweicloud</groupId>
<artifactId>esdk-obs-java</artifactId>
<version>3.23.9.1</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.33</version>
</dependency>
<!--引入定时器组件-->
<dependency>
<groupId>it.sauronsoftware.cron4j</groupId>
<artifactId>cron4j</artifactId>
<version>2.2.5</version>
</dependency>
<!--引用光-->
<!-- https://mvnrepository.com/artifact/com.zaxxer/HikariCP -->
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>5.1.0</version>
</dependency>
<!--日志logback-->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.4.7</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
<!--安装hutool-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.24</version>
</dependency>
<!--引用fastjson-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>2.0.45</version>
</dependency>
<!--引用jsoup防止xss攻击-->
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.17.2</version>
</dependency>
<!--强制升级httpclient和httpcore-->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<version>4.4.15</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.7.1</version>
</dependency>
<!--引用gson-->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.10.1</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.14.0</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.12.0</version>
</dependency>
<dependency>
<groupId>org.dom4j</groupId>
<artifactId>dom4j</artifactId>
<version>2.1.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.20.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.20.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.web3j/core -->
<dependency>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>5.0.0</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp -->
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.12.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.36</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<configuration>
<source>21</source>
<target>21</target>
<encoding>UTF-8</encoding>
<!-- java21 保留参数名编译参数 -->
<compilerArgument>-parameters</compilerArgument>
<compilerArgument>-Xlint:unchecked</compilerArgument>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -0,0 +1,143 @@
package com.dsideal.YunXiaoTools;
import cn.hutool.core.io.FileUtil;
import com.jfinal.config.*;
import com.jfinal.kit.PropKit;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;
import com.jfinal.plugin.activerecord.dialect.MysqlDialect;
import com.jfinal.plugin.activerecord.dialect.PostgreSqlDialect;
import com.jfinal.plugin.hikaricp.HikariCpPlugin;
import com.jfinal.server.undertow.UndertowServer;
import com.jfinal.template.Engine;
import lombok.SneakyThrows;
import java.io.File;
public class Start extends JFinalConfig {
public static int isMysql;
public static void main(String[] args) {
PropKit.use("application.properties");
isMysql = Integer.parseInt(PropKit.get("isMysql"));
UndertowServer.create(Start.class, "undertow.properties").start();
}
/**
*
*/
@Override
public void configConstant(Constants me) {
PropKit.use("application.properties");
}
/**
*
*/
@Override
public void configRoute(Routes me) {
}
@Override
public void configEngine(Engine engine) {
}
/**
*
*/
private String connectionTestQuery = "select 1";
// 连接池中允许的最大连接数。缺省值10推荐的公式((core_count * 2) + effective_spindle_count)
private int maxPoolSize = 10;
// 一个连接 idle 状态的最大时长(毫秒),超时则被释放(retired),缺省:10分钟
private long idleTimeoutMs = 600000;
private long maxLifetimeMs = 1800000;
// 等待连接池分配连接的最大时长(毫秒),超过这个时长还没可用的连接则发生 SQLException 缺省:30秒
private long connectionTimeoutMs = 30000;
@Override
public void configPlugin(Plugins me) {
//是不是从Mysql读取数据库,还是到PostgreSql写入到数据库
String jdbcUrl, user, password, driverClassName;
if (isMysql == 1) {
jdbcUrl = PropKit.get("mysql.jdbcUrl");
user = PropKit.get("mysql.user");
password = PropKit.get("mysql.password");
driverClassName = PropKit.get("mysql.driverClassName");
} else {
jdbcUrl = PropKit.get("postgresql.jdbcUrl");
user = PropKit.get("postgresql.user");
password = PropKit.get("postgresql.password");
driverClassName = PropKit.get("postgresql.driverClassName");
}
HikariCpPlugin hp = new HikariCpPlugin(jdbcUrl, user, password, driverClassName);
hp.setConnectionTestQuery(this.connectionTestQuery);
hp.setConnectionTimeout(this.connectionTimeoutMs);
hp.setIdleTimeout(this.idleTimeoutMs);
hp.setMaxLifetime(this.maxLifetimeMs);
hp.setMaximumPoolSize(this.maxPoolSize);
me.add(hp);
ActiveRecordPlugin arp = new ActiveRecordPlugin(hp);
if (isMysql == 1) {
arp.setDialect(new MysqlDialect());
} else {
arp.setDialect(new PostgreSqlDialect());
}
String basePath = Start.class.getClassLoader().getResource(".").getPath();
File sqlDir = new File(basePath + "/Sql");
File[] sqlFiles = sqlDir.listFiles();
File[] var10 = sqlFiles != null ? sqlFiles : new File[0];
int var11 = var10.length;
for (int i = 0; i < var11; ++i) {
File sqlFile = var10[i];
if (sqlFile.getName().indexOf(".sql") > 0) {
arp.addSqlTemplate("/Sql/" + sqlFile.getName());
}
}
me.add(arp);
//加载定时器
//me.add(new Cron4jPlugin(PropKit.use("cron4j.properties")));
}
/**
*
*/
@Override
public void configInterceptor(Interceptors me) {
}
/**
*
*/
@Override
public void configHandler(Handlers me) {
}
/**
* jfinal
*/
@SneakyThrows
@Override
public void onStart() {
//打印 启动Logo
String logoFile;
if (isMysql == 1) {
logoFile = "readLogo.txt";
} else {
logoFile = "writeLogo.txt";
}
String path = Start.class.getClassLoader().getResource(logoFile).getPath();
File file = new File(path);
System.out.println(FileUtil.readUtf8String(file));
}
}

@ -0,0 +1,15 @@
# 数据库信息
mysql.driverClassName=org.postgresql.Driver
mysql.user=postgres
mysql.password=DsideaL147258369
mysql.jdbcUrl=jdbc:postgresql://10.10.14.71:5432/szjz_db?reWriteBatchedInserts=true
postgresql.driverClassName=org.postgresql.Driver
postgresql.user=postgres
postgresql.password=DsideaL147258369
postgresql.jdbcUrl=jdbc:postgresql://10.10.14.71:5432/szjz_db?reWriteBatchedInserts=true
# 当前是读取方还是写入方
isMysql=1

@ -0,0 +1,14 @@
$$\ $$\ $$\ $$\ $$\ $$$$$$$\ $$\ $$$$$$$\ $$\
\$$\ $$ | $$ | $$ |\__| $$ __$$\ $$ |$$ __$$\ $$ |
\$$\ $$ /$$\ $$\ $$$$$$$\ \$$\ $$ |$$\ $$$$$$\ $$$$$$\ $$ | $$ | $$$$$$\ $$$$$$\ $$$$$$$ |$$ | $$ | $$$$$$\ $$$$$$\ $$$$$$\
\$$$$ / $$ | $$ |$$ __$$\ \$$$$ / $$ | \____$$\ $$ __$$\ $$$$$$$ |$$ __$$\ \____$$\ $$ __$$ |$$ | $$ | \____$$\\_$$ _| \____$$\
\$$ / $$ | $$ |$$ | $$ | $$ $$< $$ | $$$$$$$ |$$ / $$ | $$ __$$< $$$$$$$$ | $$$$$$$ |$$ / $$ |$$ | $$ | $$$$$$$ | $$ | $$$$$$$ |
$$ | $$ | $$ |$$ | $$ |$$ /\$$\ $$ |$$ __$$ |$$ | $$ | $$ | $$ |$$ ____|$$ __$$ |$$ | $$ |$$ | $$ |$$ __$$ | $$ |$$\ $$ __$$ |
$$ | \$$$$$$ |$$ | $$ |$$ / $$ |$$ |\$$$$$$$ |\$$$$$$ | $$ | $$ |\$$$$$$$\ \$$$$$$$ |\$$$$$$$ |$$$$$$$ |\$$$$$$$ | \$$$$ |\$$$$$$$ |
\__| \______/ \__| \__|\__| \__|\__| \_______| \______/ \__| \__| \_______| \_______| \_______|\_______/ \_______| \____/ \_______|
power by http://patorjk.com/software/taag/

@ -0,0 +1,36 @@
# true 值支持热加载
undertow.devMode=false
undertow.port=9008
undertow.host=0.0.0.0
#undertow.resourcePath=/usr/local/tomcat8/webapps/QingLong,classpath:static
#undertow.resourcePath=D:/dsWork/QingLong/WebRoot,classpath:static
# 目录名称
undertow.contextPath=/YunXiaoTools
# 设定I/O线程数.
server.undertow.io-threads=8
# 设定工作线程数
server.undertow.worker-threads=60
# 查询当前某程序的线程或进程数
# yum install psmisc -y
# ps -e | grep java | awk '{print $1}
# pstree -p 15453 | wc -l
# gzip 压缩开关
undertow.gzip.enable=true
# 配置压缩级别,默认值 -1。 可配置 1 到 9。 1 拥有最快压缩速度9 拥有最高压缩率
undertow.gzip.level=-1
# 触发压缩的最小内容长度
undertow.gzip.minLength=1024
# 开启access日志
server.undertow.accesslog.enabled=true
server.undertow.accesslog.pattern=%t %a "%r" %s (%D ms)
# ssl 开启时,是否开启 http2。检测该配置是否生效在 chrome 地址栏中输入: chrome://net-internals/#http2
#undertow.http2.enable=true
#http://www.jfinal.com/doc/1-4

@ -0,0 +1,16 @@
__ __ __ __ __ __ __ __ __ _______ __
| \ / \ | \ | \| \ | \ _ | \ | \ | \ | \ | \
\$$\ / $$__ __ _______ | $$ | $$ \$$ ______ ______ | $$ / \ | $$ ______ \$$ _| $$_ ______ | $$$$$$$\ ______ _| $$_ ______
\$$\/ $$| \ | \| \ \$$\/ $$| \ | \ / \ | $$/ $\| $$ / \ | \| $$ \ / \ | $$ | $$ | \| $$ \ | \
\$$ $$ | $$ | $$| $$$$$$$\ >$$ $$ | $$ \$$$$$$\| $$$$$$\ | $$ $$$\ $$| $$$$$$\| $$ \$$$$$$ | $$$$$$\| $$ | $$ \$$$$$$\\$$$$$$ \$$$$$$\
\$$$$ | $$ | $$| $$ | $$ / $$$$\ | $$ / $$| $$ | $$ | $$ $$\$$\$$| $$ \$$| $$ | $$ __ | $$ $$| $$ | $$ / $$ | $$ __ / $$
| $$ | $$__/ $$| $$ | $$| $$ \$$\| $$| $$$$$$$| $$__/ $$ | $$$$ \$$$$| $$ | $$ | $$| \| $$$$$$$$| $$__/ $$| $$$$$$$ | $$| \| $$$$$$$
| $$ \$$ $$| $$ | $$| $$ | $$| $$ \$$ $$ \$$ $$ | $$$ \$$$| $$ | $$ \$$ $$ \$$ \| $$ $$ \$$ $$ \$$ $$ \$$ $$
\$$ \$$$$$$ \$$ \$$ \$$ \$$ \$$ \$$$$$$$ \$$$$$$ \$$ \$$ \$$ \$$ \$$$$ \$$$$$$$ \$$$$$$$ \$$$$$$$ \$$$$ \$$$$$$$
power by http://patorjk.com/software/taag/

@ -0,0 +1,15 @@
# 数据库信息
mysql.driverClassName=org.postgresql.Driver
mysql.user=postgres
mysql.password=DsideaL147258369
mysql.jdbcUrl=jdbc:postgresql://10.10.14.71:5432/szjz_db?reWriteBatchedInserts=true
postgresql.driverClassName=org.postgresql.Driver
postgresql.user=postgres
postgresql.password=DsideaL147258369
postgresql.jdbcUrl=jdbc:postgresql://10.10.14.71:5432/szjz_db?reWriteBatchedInserts=true
# 当前是读取方还是写入方
isMysql=1

@ -0,0 +1,14 @@
$$\ $$\ $$\ $$\ $$\ $$$$$$$\ $$\ $$$$$$$\ $$\
\$$\ $$ | $$ | $$ |\__| $$ __$$\ $$ |$$ __$$\ $$ |
\$$\ $$ /$$\ $$\ $$$$$$$\ \$$\ $$ |$$\ $$$$$$\ $$$$$$\ $$ | $$ | $$$$$$\ $$$$$$\ $$$$$$$ |$$ | $$ | $$$$$$\ $$$$$$\ $$$$$$\
\$$$$ / $$ | $$ |$$ __$$\ \$$$$ / $$ | \____$$\ $$ __$$\ $$$$$$$ |$$ __$$\ \____$$\ $$ __$$ |$$ | $$ | \____$$\\_$$ _| \____$$\
\$$ / $$ | $$ |$$ | $$ | $$ $$< $$ | $$$$$$$ |$$ / $$ | $$ __$$< $$$$$$$$ | $$$$$$$ |$$ / $$ |$$ | $$ | $$$$$$$ | $$ | $$$$$$$ |
$$ | $$ | $$ |$$ | $$ |$$ /\$$\ $$ |$$ __$$ |$$ | $$ | $$ | $$ |$$ ____|$$ __$$ |$$ | $$ |$$ | $$ |$$ __$$ | $$ |$$\ $$ __$$ |
$$ | \$$$$$$ |$$ | $$ |$$ / $$ |$$ |\$$$$$$$ |\$$$$$$ | $$ | $$ |\$$$$$$$\ \$$$$$$$ |\$$$$$$$ |$$$$$$$ |\$$$$$$$ | \$$$$ |\$$$$$$$ |
\__| \______/ \__| \__|\__| \__|\__| \_______| \______/ \__| \__| \_______| \_______| \_______|\_______/ \_______| \____/ \_______|
power by http://patorjk.com/software/taag/

@ -0,0 +1,36 @@
# true 值支持热加载
undertow.devMode=false
undertow.port=9008
undertow.host=0.0.0.0
#undertow.resourcePath=/usr/local/tomcat8/webapps/QingLong,classpath:static
#undertow.resourcePath=D:/dsWork/QingLong/WebRoot,classpath:static
# 目录名称
undertow.contextPath=/YunXiaoTools
# 设定I/O线程数.
server.undertow.io-threads=8
# 设定工作线程数
server.undertow.worker-threads=60
# 查询当前某程序的线程或进程数
# yum install psmisc -y
# ps -e | grep java | awk '{print $1}
# pstree -p 15453 | wc -l
# gzip 压缩开关
undertow.gzip.enable=true
# 配置压缩级别,默认值 -1。 可配置 1 到 9。 1 拥有最快压缩速度9 拥有最高压缩率
undertow.gzip.level=-1
# 触发压缩的最小内容长度
undertow.gzip.minLength=1024
# 开启access日志
server.undertow.accesslog.enabled=true
server.undertow.accesslog.pattern=%t %a "%r" %s (%D ms)
# ssl 开启时,是否开启 http2。检测该配置是否生效在 chrome 地址栏中输入: chrome://net-internals/#http2
#undertow.http2.enable=true
#http://www.jfinal.com/doc/1-4

@ -0,0 +1,16 @@
__ __ __ __ __ __ __ __ __ _______ __
| \ / \ | \ | \| \ | \ _ | \ | \ | \ | \ | \
\$$\ / $$__ __ _______ | $$ | $$ \$$ ______ ______ | $$ / \ | $$ ______ \$$ _| $$_ ______ | $$$$$$$\ ______ _| $$_ ______
\$$\/ $$| \ | \| \ \$$\/ $$| \ | \ / \ | $$/ $\| $$ / \ | \| $$ \ / \ | $$ | $$ | \| $$ \ | \
\$$ $$ | $$ | $$| $$$$$$$\ >$$ $$ | $$ \$$$$$$\| $$$$$$\ | $$ $$$\ $$| $$$$$$\| $$ \$$$$$$ | $$$$$$\| $$ | $$ \$$$$$$\\$$$$$$ \$$$$$$\
\$$$$ | $$ | $$| $$ | $$ / $$$$\ | $$ / $$| $$ | $$ | $$ $$\$$\$$| $$ \$$| $$ | $$ __ | $$ $$| $$ | $$ / $$ | $$ __ / $$
| $$ | $$__/ $$| $$ | $$| $$ \$$\| $$| $$$$$$$| $$__/ $$ | $$$$ \$$$$| $$ | $$ | $$| \| $$$$$$$$| $$__/ $$| $$$$$$$ | $$| \| $$$$$$$
| $$ \$$ $$| $$ | $$| $$ | $$| $$ \$$ $$ \$$ $$ | $$$ \$$$| $$ | $$ \$$ $$ \$$ \| $$ $$ \$$ $$ \$$ $$ \$$ $$
\$$ \$$$$$$ \$$ \$$ \$$ \$$ \$$ \$$$$$$$ \$$$$$$ \$$ \$$ \$$ \$$ \$$$$ \$$$$$$$ \$$$$$$$ \$$$$$$$ \$$$$ \$$$$$$$
power by http://patorjk.com/software/taag/

@ -22,7 +22,7 @@ public class ExportExcelUtil {
CellStyle dataStyle = createDataStyle(workbook); CellStyle dataStyle = createDataStyle(workbook);
// 设置列宽 // 设置列宽
sheet.setColumnWidth(0, 4000); // 区域 sheet.setColumnWidth(0, 8000); // 区域
sheet.setColumnWidth(1, 5000); // 机构编号 sheet.setColumnWidth(1, 5000); // 机构编号
sheet.setColumnWidth(2, 8000); // 机构名称 sheet.setColumnWidth(2, 8000); // 机构名称
sheet.setColumnWidth(3, 4000); // 办学类型 sheet.setColumnWidth(3, 4000); // 办学类型

Loading…
Cancel
Save