feat(report): JOR(jatools)报表引擎重宿主 — platform-report 后端 + /api/report 端点
EIP3 真报表=jatools JOR 套打模板(非 amis 表格)。本批次把报表引擎重宿主进 EIP4
(复用客户已持有的预编译引擎 jar,非移植 900 源文件;非重建引擎)。Phase 1 后端完成+真验。
- platform-report 模块:18 个预编译 jar(jatools 引擎 + 改造版 BeanShell + itext/jxl/
jsqlparser/jfreechart/barcode4j/zxing/…)经项目内 local-repo(install-libs.sh)正常依赖,
打进 fat jar(BOOT-INF/lib 已确认,非 system scope)。
- ReportService:走 jatools.engine.ReportJob(查询参数 setParameter→declareExternalVariables
→SQL ${PARAM});headless(java.awt.headless)。三格式 HTML/PDF/XLS。
- JatoolsConfig:把 EIP4 spring.datasource 注入引擎 System2.properties(无 CWD 文件依赖)+
注册 CJK 字体供 PDF。
- ReportController:GET /api/report/render/{templateId}?format=html|pdf|xls&<查询参数>;
按 templateId 从 view_template(type=200)的 <reportfile> CDATA 取 JOR 渲染;?tpl= dev 覆盖。
- SecurityConfig:X-Frame-Options DENY→SAMEORIGIN(报表查看器同源 iframe 内嵌;生产 nginx 单源)。
真验:全 reactor mvn clean install 绿(0 失败);8093 端点 GET /api/report/render/{id} 三格式
HTTP 200(HTML 48K/PDF 106K/XLS 21K);查询参数 PROJECTID 流进 SQL 48×;浏览器内 amis 菜单页
(查询表单+iframe 查看器)渲染出 JOR 套打报表(在建工程项目收付款信息表,公式列/分组小计/签字栏)。
边界:Phase 2 前端「报表页 body 换查看器」当前以单页 sys_page_schema 运行态改动演示(非本提交代码);
铺到全部 339 张 type=200 报表页 = Phase 3(转换器侧生成查看器 body)。数据保真须对完整客户库验证
(eip4dev 为部分 dev 库,部分报表源表缺)。design 见 docs/plans/2026-06-25-报表迁移-JOR引擎重宿主-design.md。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
48
platform-report/install-libs.sh
Executable file
48
platform-report/install-libs.sh
Executable file
@@ -0,0 +1,48 @@
|
||||
#!/usr/bin/env bash
|
||||
# Installs the prebuilt EIP3 jatools (JOR) report-engine jars into the PROJECT-LOCAL
|
||||
# Maven repo (platform-report/local-repo) under stable coordinates so the module can
|
||||
# depend on them normally (and they get packaged into the Spring Boot fat jar).
|
||||
#
|
||||
# Re-run this only if the jars in ./lib change. The resulting ./local-repo is committed
|
||||
# with the module, so a normal `mvn install` does NOT need this script.
|
||||
#
|
||||
# Requires JAVA_HOME=/opt/homebrew/opt/openjdk@21 (or any JDK21) and mvn on PATH.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")"
|
||||
REPO="$(pwd)/local-repo"
|
||||
LIB="$(pwd)/lib"
|
||||
GROUP="com.dsasp.thirdparty"
|
||||
VERSION="eip3"
|
||||
|
||||
install() {
|
||||
local artifact="$1" jar="$2"
|
||||
mvn -q org.apache.maven.plugins:maven-install-plugin:3.1.1:install-file \
|
||||
-Dfile="$LIB/$jar" \
|
||||
-DgroupId="$GROUP" \
|
||||
-DartifactId="$artifact" \
|
||||
-Dversion="$VERSION" \
|
||||
-Dpackaging=jar \
|
||||
-DlocalRepositoryPath="$REPO"
|
||||
echo "installed $GROUP:$artifact:$VERSION <- $jar"
|
||||
}
|
||||
|
||||
install jatools jatools.jar
|
||||
install bsh bsh2.0.jar
|
||||
install itext itext.jar
|
||||
install jxl jxl.jar
|
||||
install jsqlparser jsqlparser.jar
|
||||
install jfreechart jfreechart-1.0.13.jar
|
||||
install jcommon jcommon-1.0.16.jar
|
||||
install jchart chart.jar
|
||||
install barcode4j barcode4j.jar
|
||||
install zxing zxing2.1.core.jar
|
||||
install commons-beanutils commons-beanutils.jar
|
||||
install commons-collections commons-collections-3.0.jar
|
||||
install commons-httpclient commons-httpclient-2.0.1.jar
|
||||
install commons-lang commons-lang-2.0.jar
|
||||
install commons-logging commons-logging-1.0.1.jar
|
||||
install log4j log4j-1.2.8.jar
|
||||
install jaxen jaxen1.1.1.jar
|
||||
install xerces xercesImpl.jar
|
||||
|
||||
echo "DONE. local-repo populated at $REPO"
|
||||
BIN
platform-report/lib/barcode4j.jar
Normal file
BIN
platform-report/lib/barcode4j.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/bsh2.0.jar
Normal file
BIN
platform-report/lib/bsh2.0.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/chart.jar
Normal file
BIN
platform-report/lib/chart.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/commons-beanutils.jar
Normal file
BIN
platform-report/lib/commons-beanutils.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/commons-collections-3.0.jar
Normal file
BIN
platform-report/lib/commons-collections-3.0.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/commons-httpclient-2.0.1.jar
Normal file
BIN
platform-report/lib/commons-httpclient-2.0.1.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/commons-lang-2.0.jar
Normal file
BIN
platform-report/lib/commons-lang-2.0.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/commons-logging-1.0.1.jar
Normal file
BIN
platform-report/lib/commons-logging-1.0.1.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/itext.jar
Normal file
BIN
platform-report/lib/itext.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/jatools.jar
Normal file
BIN
platform-report/lib/jatools.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/jaxen1.1.1.jar
Normal file
BIN
platform-report/lib/jaxen1.1.1.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/jcommon-1.0.16.jar
Normal file
BIN
platform-report/lib/jcommon-1.0.16.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/jfreechart-1.0.13.jar
Normal file
BIN
platform-report/lib/jfreechart-1.0.13.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/jsqlparser.jar
Normal file
BIN
platform-report/lib/jsqlparser.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/jxl.jar
Normal file
BIN
platform-report/lib/jxl.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/log4j-1.2.8.jar
Normal file
BIN
platform-report/lib/log4j-1.2.8.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/xercesImpl.jar
Normal file
BIN
platform-report/lib/xercesImpl.jar
Normal file
Binary file not shown.
BIN
platform-report/lib/zxing2.1.core.jar
Normal file
BIN
platform-report/lib/zxing2.1.core.jar
Normal file
Binary file not shown.
4
platform-report/local-repo/com/dsasp/thirdparty/barcode4j/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/barcode4j/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:00 CST 2026
|
||||
barcode4j-eip3.jar>=
|
||||
barcode4j-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/barcode4j/eip3/barcode4j-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/barcode4j/eip3/barcode4j-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/barcode4j/eip3/barcode4j-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/barcode4j/eip3/barcode4j-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>barcode4j</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/barcode4j/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/barcode4j/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>barcode4j</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090400</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/bsh/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/bsh/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:03:51 CST 2026
|
||||
bsh-eip3.jar>=
|
||||
bsh-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/bsh/eip3/bsh-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/bsh/eip3/bsh-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/bsh/eip3/bsh-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/bsh/eip3/bsh-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>bsh</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/bsh/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/bsh/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>bsh</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090351</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/commons-beanutils/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/commons-beanutils/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:03 CST 2026
|
||||
commons-beanutils-eip3.jar>=
|
||||
commons-beanutils-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/commons-beanutils/eip3/commons-beanutils-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/commons-beanutils/eip3/commons-beanutils-eip3.jar
vendored
Normal file
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-beanutils</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/commons-beanutils/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/commons-beanutils/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-beanutils</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090403</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:04 CST 2026
|
||||
commons-collections-eip3.jar>=
|
||||
commons-collections-eip3.pom>=
|
||||
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-collections</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/commons-collections/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/commons-collections/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-collections</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090404</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/commons-httpclient/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/commons-httpclient/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:05 CST 2026
|
||||
commons-httpclient-eip3.jar>=
|
||||
commons-httpclient-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/commons-httpclient/eip3/commons-httpclient-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/commons-httpclient/eip3/commons-httpclient-eip3.jar
vendored
Normal file
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-httpclient</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/commons-httpclient/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/commons-httpclient/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-httpclient</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090405</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/commons-lang/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/commons-lang/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:06 CST 2026
|
||||
commons-lang-eip3.jar>=
|
||||
commons-lang-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/commons-lang/eip3/commons-lang-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/commons-lang/eip3/commons-lang-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/commons-lang/eip3/commons-lang-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/commons-lang/eip3/commons-lang-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/commons-lang/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/commons-lang/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090406</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/commons-logging/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/commons-logging/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:08 CST 2026
|
||||
commons-logging-eip3.jar>=
|
||||
commons-logging-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/commons-logging/eip3/commons-logging-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/commons-logging/eip3/commons-logging-eip3.jar
vendored
Normal file
Binary file not shown.
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/commons-logging/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/commons-logging/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>commons-logging</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090407</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/itext/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/itext/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:03:52 CST 2026
|
||||
itext-eip3.jar>=
|
||||
itext-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/itext/eip3/itext-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/itext/eip3/itext-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/itext/eip3/itext-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/itext/eip3/itext-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>itext</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/itext/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/itext/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>itext</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090352</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/jatools/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/jatools/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:03:50 CST 2026
|
||||
jatools-eip3.jar>=
|
||||
jatools-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/jatools/eip3/jatools-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/jatools/eip3/jatools-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/jatools/eip3/jatools-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/jatools/eip3/jatools-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jatools</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/jatools/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/jatools/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jatools</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090347</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/jaxen/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/jaxen/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:10 CST 2026
|
||||
jaxen-eip3.jar>=
|
||||
jaxen-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/jaxen/eip3/jaxen-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/jaxen/eip3/jaxen-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/jaxen/eip3/jaxen-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/jaxen/eip3/jaxen-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jaxen</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/jaxen/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/jaxen/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jaxen</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090410</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/jchart/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/jchart/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:03:59 CST 2026
|
||||
jchart-eip3.jar>=
|
||||
jchart-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/jchart/eip3/jchart-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/jchart/eip3/jchart-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/jchart/eip3/jchart-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/jchart/eip3/jchart-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jchart</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/jchart/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/jchart/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jchart</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090359</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/jcommon/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/jcommon/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:03:57 CST 2026
|
||||
jcommon-eip3.jar>=
|
||||
jcommon-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/jcommon/eip3/jcommon-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/jcommon/eip3/jcommon-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/jcommon/eip3/jcommon-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/jcommon/eip3/jcommon-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jcommon</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/jcommon/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/jcommon/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jcommon</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090357</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/jfreechart/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/jfreechart/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:03:56 CST 2026
|
||||
jfreechart-eip3.jar>=
|
||||
jfreechart-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/jfreechart/eip3/jfreechart-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/jfreechart/eip3/jfreechart-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/jfreechart/eip3/jfreechart-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/jfreechart/eip3/jfreechart-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jfreechart</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/jfreechart/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/jfreechart/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jfreechart</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090356</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/jsqlparser/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/jsqlparser/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:03:55 CST 2026
|
||||
jsqlparser-eip3.jar>=
|
||||
jsqlparser-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/jsqlparser/eip3/jsqlparser-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/jsqlparser/eip3/jsqlparser-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/jsqlparser/eip3/jsqlparser-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/jsqlparser/eip3/jsqlparser-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jsqlparser</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/jsqlparser/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/jsqlparser/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jsqlparser</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090355</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/jxl/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/jxl/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:03:54 CST 2026
|
||||
jxl-eip3.jar>=
|
||||
jxl-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/jxl/eip3/jxl-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/jxl/eip3/jxl-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/jxl/eip3/jxl-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/jxl/eip3/jxl-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jxl</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/jxl/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/jxl/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>jxl</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090354</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/log4j/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/log4j/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:09 CST 2026
|
||||
log4j-eip3.jar>=
|
||||
log4j-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/log4j/eip3/log4j-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/log4j/eip3/log4j-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/log4j/eip3/log4j-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/log4j/eip3/log4j-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/log4j/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/log4j/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090409</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/xerces/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/xerces/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:11 CST 2026
|
||||
xerces-eip3.jar>=
|
||||
xerces-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/xerces/eip3/xerces-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/xerces/eip3/xerces-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/xerces/eip3/xerces-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/xerces/eip3/xerces-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>xerces</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/xerces/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/xerces/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>xerces</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090411</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
4
platform-report/local-repo/com/dsasp/thirdparty/zxing/eip3/_remote.repositories
vendored
Normal file
4
platform-report/local-repo/com/dsasp/thirdparty/zxing/eip3/_remote.repositories
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Thu Jun 25 17:04:02 CST 2026
|
||||
zxing-eip3.jar>=
|
||||
zxing-eip3.pom>=
|
||||
BIN
platform-report/local-repo/com/dsasp/thirdparty/zxing/eip3/zxing-eip3.jar
vendored
Normal file
BIN
platform-report/local-repo/com/dsasp/thirdparty/zxing/eip3/zxing-eip3.jar
vendored
Normal file
Binary file not shown.
9
platform-report/local-repo/com/dsasp/thirdparty/zxing/eip3/zxing-eip3.pom
vendored
Normal file
9
platform-report/local-repo/com/dsasp/thirdparty/zxing/eip3/zxing-eip3.pom
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>zxing</artifactId>
|
||||
<version>eip3</version>
|
||||
<description>POM was created from install:install-file</description>
|
||||
</project>
|
||||
12
platform-report/local-repo/com/dsasp/thirdparty/zxing/maven-metadata-local.xml
vendored
Normal file
12
platform-report/local-repo/com/dsasp/thirdparty/zxing/maven-metadata-local.xml
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>com.dsasp.thirdparty</groupId>
|
||||
<artifactId>zxing</artifactId>
|
||||
<versioning>
|
||||
<release>eip3</release>
|
||||
<versions>
|
||||
<version>eip3</version>
|
||||
</versions>
|
||||
<lastUpdated>20260625090401</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
104
platform-report/pom.xml
Normal file
104
platform-report/pom.xml
Normal file
@@ -0,0 +1,104 @@
|
||||
<?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>
|
||||
|
||||
<parent>
|
||||
<groupId>com.eip4</groupId>
|
||||
<artifactId>eip4-platform</artifactId>
|
||||
<version>0.1.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>platform-report</artifactId>
|
||||
<name>platform-report</name>
|
||||
<description>EIP3 JOR (jatools) 报表引擎重宿主:用预编译成品 jar headless 渲染 JOR 套打模板为 HTML/PDF/XLS</description>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.release>21</maven.compiler.release>
|
||||
</properties>
|
||||
|
||||
<!-- 预编译报表引擎 jar 装入项目内本地仓(local-repo/,随码提交)。
|
||||
坐标 com.dsasp.thirdparty:*:eip3,由 install-libs.sh 用 mvn install:install-file 生成。
|
||||
不用 system scope —— system scope 不会被 spring-boot-maven-plugin 打进 fat jar。 -->
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>eip3-local</id>
|
||||
<url>file://${project.basedir}/local-repo</url>
|
||||
<releases>
|
||||
<enabled>true</enabled>
|
||||
<updatePolicy>never</updatePolicy>
|
||||
</releases>
|
||||
<snapshots>
|
||||
<enabled>false</enabled>
|
||||
</snapshots>
|
||||
</repository>
|
||||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<!-- ===== JOR(jatools) 报表引擎预编译成品 ===== -->
|
||||
<!-- 引擎本体 -->
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>jatools</artifactId><version>eip3</version></dependency>
|
||||
<!-- jatools 改造版 BeanShell(公式求值核心,含 8 个自定义类):必须用这份 fork,非 stock bsh -->
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>bsh</artifactId><version>eip3</version></dependency>
|
||||
<!-- PDF 导出 -->
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>itext</artifactId><version>eip3</version></dependency>
|
||||
<!-- XLS 导出 -->
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>jxl</artifactId><version>eip3</version></dependency>
|
||||
<!-- 报表 SQL 解析 -->
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>jsqlparser</artifactId><version>eip3</version></dependency>
|
||||
<!-- 图表(B 类报表,jfreechart + jcommon + jatools chart 封装) -->
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>jfreechart</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>jcommon</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>jchart</artifactId><version>eip3</version></dependency>
|
||||
<!-- 条码 / 二维码 -->
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>barcode4j</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>zxing</artifactId><version>eip3</version></dependency>
|
||||
<!-- 引擎运行期依赖的旧版 commons / log4j1 / jaxen / xerces。给独立坐标避免与平台托管版本误判去重。 -->
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>commons-beanutils</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>commons-collections</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>commons-httpclient</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>commons-lang</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>commons-logging</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>log4j</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>jaxen</artifactId><version>eip3</version></dependency>
|
||||
<dependency><groupId>com.dsasp.thirdparty</groupId><artifactId>xerces</artifactId><version>eip3</version></dependency>
|
||||
|
||||
<!-- ===== Spring(控制器 / 注入 DataSource 配置) ===== -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
<!-- JdbcTemplate:按 templateId 从 view_template(type=200) 取 JOR 模板。
|
||||
DataSource 由运行宿主 platform-app 提供(spring.datasource.*)。 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||
</dependency>
|
||||
<!-- 数据库驱动:模板 <Connection> 按驱动类名加载 org.postgresql.Driver,需在 classpath -->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.junit.jupiter</groupId>
|
||||
<artifactId>junit-jupiter</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<release>21</release>
|
||||
<encoding>UTF-8</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@@ -0,0 +1,143 @@
|
||||
package com.eip4.platform.report;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Properties;
|
||||
|
||||
import jakarta.annotation.PostConstruct;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import com.lowagie.text.pdf.BaseFont;
|
||||
import com.lowagie.text.pdf.DefaultFontMapper;
|
||||
|
||||
import jatools.engine.System2;
|
||||
|
||||
/**
|
||||
* 把 jatools 引擎所需配置在启动时注入 {@code jatools.engine.System2}。
|
||||
*
|
||||
* <p>背景:引擎通过 {@code System2.getProperty(name)} 读配置 —— 其实现是:若静态字段
|
||||
* {@code System2.properties} 为 null,则按 {@code 工作目录/[WEB-INF/]jatools.properties}
|
||||
* 用 {@code FileInputStream} 加载(依赖进程 CWD,脆弱)。{@code System2.properties} 是
|
||||
* <b>public static</b> 字段,故这里直接构造一份 {@link java.util.PropertyResourceBundle}
|
||||
* 赋值给它,彻底绕开文件加载。
|
||||
*
|
||||
* <p>注入的键:
|
||||
* <ul>
|
||||
* <li>{@code timeformat} / {@code dayformat} / {@code company} —— 系统变量(NOW/TODAY/COMPANY)</li>
|
||||
* <li>{@code font.dirs} —— 字体目录(加 macOS 与 Linux 路径,服务端版式/中文保真)</li>
|
||||
* <li>{@code DBJdbcUrl} / {@code DBUser} / {@code DBPassword} —— 报表模板 {@code <Connection>}
|
||||
* 里的 {@code ${property("DBJdbcUrl")}} 等,必须解析到 EIP4 数据源</li>
|
||||
* </ul>
|
||||
* DB 三键默认取 EIP4 的 {@code spring.datasource.*};本地验证默认指向 dev 库
|
||||
* {@code jdbc:postgresql://localhost:5433/eip4dev?currentSchema=eip3}(用户 zhengwr,无密码)。
|
||||
*/
|
||||
@Component
|
||||
public class JatoolsConfig {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(JatoolsConfig.class);
|
||||
|
||||
@Value("${spring.datasource.url:jdbc:postgresql://localhost:5433/eip4dev?currentSchema=eip3}")
|
||||
private String jdbcUrl;
|
||||
|
||||
@Value("${spring.datasource.username:zhengwr}")
|
||||
private String dbUser;
|
||||
|
||||
@Value("${spring.datasource.password:}")
|
||||
private String dbPassword;
|
||||
|
||||
@Value("${eip4.report.company:EIP4}")
|
||||
private String company;
|
||||
|
||||
/**
|
||||
* PDF 导出兜底字体(CJK 保真)候选路径,按序探测,取首个可加载者注册为
|
||||
* iText {@code DefaultFontMapper.defaultFont}。覆盖 macOS(本地验证)与常见 Linux 路径。
|
||||
* {@code .ttc} 字体集需 {@code ,索引} 后缀(如 {@code ,0})。
|
||||
*/
|
||||
private static final String[] PDF_FALLBACK_FONTS = {
|
||||
// macOS
|
||||
"/System/Library/Fonts/STHeiti Light.ttc,0",
|
||||
"/System/Library/Fonts/Supplemental/Songti.ttc,0",
|
||||
"/System/Library/Fonts/Supplemental/Arial Unicode.ttf",
|
||||
"/Library/Fonts/Arial Unicode.ttf",
|
||||
// Linux(常见中文字体包)
|
||||
"/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc,0",
|
||||
"/usr/share/fonts/wenquanyi/wqy-zenhei/wqy-zenhei.ttc,0",
|
||||
"/usr/share/fonts/truetype/arphic/uming.ttc,0",
|
||||
"/usr/share/fonts/opentype/noto/NotoSansCJK-Regular.ttc,0",
|
||||
"/usr/share/fonts/google-noto-cjk/NotoSansCJK-Regular.ttc,0"
|
||||
};
|
||||
|
||||
private volatile boolean initialized = false;
|
||||
|
||||
@PostConstruct
|
||||
public synchronized void init() {
|
||||
if (initialized) {
|
||||
return;
|
||||
}
|
||||
Properties p = new Properties();
|
||||
// 日期/时间格式(对齐 EIP3 jatools.properties)
|
||||
p.setProperty("timeformat", "hh:mm:ss");
|
||||
p.setProperty("dayformat", "yyyy-MM-dd");
|
||||
p.setProperty("company", company == null ? "EIP4" : company);
|
||||
// 字体目录:覆盖 macOS(本地验证)与 Linux(生产部署),服务端 Graphics2D 版式/中文保真
|
||||
p.setProperty("font.dirs",
|
||||
"/System/Library/Fonts;/Library/Fonts;"
|
||||
+ "/usr/share/fonts;/usr/share/fonts/truetype;/usr/local/share/fonts");
|
||||
// 报表模板 <Connection> 解析到 EIP4 数据源
|
||||
p.setProperty("DBJdbcUrl", jdbcUrl == null ? "" : jdbcUrl);
|
||||
p.setProperty("DBUser", dbUser == null ? "" : dbUser);
|
||||
p.setProperty("DBPassword", dbPassword == null ? "" : dbPassword);
|
||||
|
||||
try {
|
||||
// PropertyResourceBundle 用 ISO-8859-1 读字节流;键值均 ASCII,安全。
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
p.store(baos, "EIP4 injected jatools config");
|
||||
System2.properties = new java.util.PropertyResourceBundle(
|
||||
new ByteArrayInputStream(baos.toByteArray()));
|
||||
log.info("jatools 配置已注入 System2.properties: DBJdbcUrl={}, DBUser={}", jdbcUrl, dbUser);
|
||||
} catch (Exception e) {
|
||||
throw new IllegalStateException("注入 jatools System2 配置失败: " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
registerPdfFallbackFont();
|
||||
|
||||
initialized = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* PDF 导出兜底字体注册。EIP3 引擎 {@code _Job.printAsPDF} 用 iText 无参 {@code createGraphics}
|
||||
* (空 {@code DefaultFontMapper}),AWT 逻辑字体(Dialog 等)无映射会抛"既找不到字体...也找不到默认字体"。
|
||||
* iText {@code DefaultFontMapper.awtToPdf} 在找不到具名字体时会回落到 {@code defaultFont}(静态字段),
|
||||
* 故注册一个 CJK TrueType 作 defaultFont 即可让 PDF 不崩,并尽量保中文。最佳努力,失败仅告警。
|
||||
*/
|
||||
private void registerPdfFallbackFont() {
|
||||
for (String spec : PDF_FALLBACK_FONTS) {
|
||||
String path = spec.contains(",") ? spec.substring(0, spec.indexOf(',')) : spec;
|
||||
if (!new java.io.File(path).isFile()) {
|
||||
continue;
|
||||
}
|
||||
try {
|
||||
BaseFont bf = BaseFont.createFont(spec, BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);
|
||||
DefaultFontMapper.defaultFont = bf;
|
||||
log.info("PDF 兜底字体已注册(DefaultFontMapper.defaultFont): {}", spec);
|
||||
return;
|
||||
} catch (Exception e) {
|
||||
log.debug("PDF 兜底字体加载失败,跳过: {} ({})", spec, e.getMessage());
|
||||
}
|
||||
}
|
||||
log.warn("未找到可用 CJK 兜底字体,PDF 导出可能因字体缺失失败;HTML/XLS 不受影响。候选: {}",
|
||||
String.join(", ", PDF_FALLBACK_FONTS));
|
||||
}
|
||||
|
||||
/** 供 {@link ReportService} 构造时确保配置已就绪(@PostConstruct 顺序保险)。 */
|
||||
public void ensureInitialized() {
|
||||
if (!initialized) {
|
||||
init();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
package com.eip4.platform.report;
|
||||
|
||||
import java.io.InputStream;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.server.ResponseStatusException;
|
||||
|
||||
import jakarta.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* 报表渲染端点。
|
||||
*
|
||||
* <p>{@code GET /api/report/render/{templateId}?format=html|pdf|xls&<查询参数...>}
|
||||
* → 把 {@code templateId} 解析为 JOR 模板 .xml → {@link ReportService#render} → 返回
|
||||
* 渲染产物(HTML/PDF/XLS)。除 {@code format}/{@code tpl} 外的全部查询参数原样作为报表参数
|
||||
* 透传(报表 SQL 里的 {@code ${PARAM}} 据此绑定)。
|
||||
*
|
||||
* <p>模板解析(v1):
|
||||
* <ul>
|
||||
* <li>{@code ?tpl=<绝对路径>} —— 验证/演示用,直接指定 .xml 绝对路径(仅 dev/local 便利)。</li>
|
||||
* <li>否则把 {@code templateId} 当作相对 {@code eip4.report.templates-dir} 的路径解析,
|
||||
* 默认基目录指向 EIP3 report 根。Phase 3 改为查 {@code sys_report_template} 表。</li>
|
||||
* </ul>
|
||||
*
|
||||
* <p>注:不与既有 {@code /api/report/menu-tree}(platform-metadata)冲突 —— 该控制器只占
|
||||
* {@code /api/report/render/**}。安全:这是 {@code /api/**} 端点,在 dev/local/ci 宽松链下放行,
|
||||
* 严格 profile 下走 {@code authenticated()},沿用既有安全模型,无需改 SecurityConfig。
|
||||
*/
|
||||
@RestController
|
||||
public class ReportController {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(ReportController.class);
|
||||
|
||||
private final ReportService reportService;
|
||||
private final ReportTemplateRepository templateRepository;
|
||||
|
||||
@Value("${eip4.report.templates-dir:/Users/zhengwr/workspace/EIP-3.0}")
|
||||
private String templatesDir;
|
||||
|
||||
public ReportController(ReportService reportService,
|
||||
ReportTemplateRepository templateRepository) {
|
||||
this.reportService = reportService;
|
||||
this.templateRepository = templateRepository;
|
||||
}
|
||||
|
||||
@GetMapping("/api/report/render/{templateId}")
|
||||
public ResponseEntity<byte[]> render(@PathVariable("templateId") String templateId,
|
||||
@RequestParam(value = "format", required = false, defaultValue = "html") String format,
|
||||
@RequestParam(value = "tpl", required = false) String tplPath,
|
||||
HttpServletRequest request) {
|
||||
Map<String, String> params = collectReportParams(request);
|
||||
ReportService.Format fmt = ReportService.Format.parse(format);
|
||||
|
||||
byte[] body;
|
||||
try {
|
||||
if (tplPath != null && !tplPath.isBlank()) {
|
||||
// dev/演示覆盖:直接渲染指定 .xml 文件(可为 JOR 文档或 view_template 外壳)。
|
||||
Path xml = resolveTemplate(templateId, tplPath);
|
||||
try (InputStream is = Files.newInputStream(xml)) {
|
||||
body = reportService.render(is, params, format);
|
||||
}
|
||||
} else {
|
||||
// 标准路径:按 templateId 从 view_template(type=200) 取 JOR 文档并渲染。
|
||||
String jorXml = templateRepository.loadJorXml(templateId);
|
||||
body = reportService.render(jorXml, params, format);
|
||||
}
|
||||
} catch (ReportTemplateRepository.ReportTemplateNotFoundException e) {
|
||||
log.warn("报表模板未找到 templateId={} : {}", templateId, e.getMessage());
|
||||
throw new ResponseStatusException(HttpStatus.NOT_FOUND, e.getMessage(), e);
|
||||
} catch (ReportService.ReportRenderException e) {
|
||||
log.warn("报表渲染失败 templateId={} tpl={} : {}", templateId, tplPath, e.getMessage());
|
||||
throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, e.getMessage(), e);
|
||||
} catch (ResponseStatusException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR,
|
||||
"读取/渲染报表模板失败: " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
return ResponseEntity.ok()
|
||||
.contentType(MediaType.parseMediaType(fmt.contentType()))
|
||||
.body(body);
|
||||
}
|
||||
|
||||
/** templateId / ?tpl 解析为模板文件路径。 */
|
||||
private Path resolveTemplate(String templateId, String tplPath) {
|
||||
Path xml;
|
||||
if (tplPath != null && !tplPath.isBlank()) {
|
||||
xml = Path.of(tplPath);
|
||||
} else {
|
||||
String rel = templateId;
|
||||
if (!rel.toLowerCase().endsWith(".xml")) {
|
||||
rel = rel + ".xml";
|
||||
}
|
||||
xml = Path.of(templatesDir).resolve(rel);
|
||||
}
|
||||
if (!Files.isRegularFile(xml)) {
|
||||
throw new ResponseStatusException(HttpStatus.NOT_FOUND,
|
||||
"报表模板未找到: " + xml);
|
||||
}
|
||||
return xml;
|
||||
}
|
||||
|
||||
/** 除 format/tpl 外的查询参数 = 报表参数(只取第一个值)。 */
|
||||
private Map<String, String> collectReportParams(HttpServletRequest request) {
|
||||
Map<String, String> params = new LinkedHashMap<>();
|
||||
request.getParameterMap().forEach((name, values) -> {
|
||||
if ("format".equals(name) || "tpl".equals(name)) {
|
||||
return;
|
||||
}
|
||||
if (values != null && values.length > 0) {
|
||||
params.put(name, values[0]);
|
||||
}
|
||||
});
|
||||
return params;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package com.eip4.platform.report;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.InputStream;
|
||||
import java.io.OutputStreamWriter;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.nio.file.Files;
|
||||
import java.util.Map;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import jatools.ReportDocument;
|
||||
import jatools.engine.ReportJob;
|
||||
import jatools.io.FileResourceOutputFactory;
|
||||
import jatools.io.ResourceOutputFactory;
|
||||
|
||||
/**
|
||||
* EIP3 JOR(jatools)报表引擎的 headless 渲染服务。
|
||||
*
|
||||
* <p>用预编译成品 {@code jatools.jar} 把 JOR 套打模板(.xml)在无界面环境下渲染为
|
||||
* HTML / PDF / XLS。复刻 EIP3 {@code jatools.server.ReportExporter} 的纯引擎核心,
|
||||
* 去掉所有 {@code com.dsasp.*} 应用胶水(SysConfig/POJOCRUDService/UserSession 等)。
|
||||
*
|
||||
* <p>渲染通道 = {@code jatools.engine.ReportJob}(而非 {@code LocalReportJob}):
|
||||
* {@code ReportJob} 的 print 路径内部经 {@code ReportPrinter.declareExternalVariables}
|
||||
* 把 {@link ReportJob#setParameter} 设入的查询参数声明为脚本变量,报表 SQL 里的
|
||||
* {@code ${PARAM}} / {@code ${iif(PARAM,...)}} 由此绑定。{@code LocalReportJob} 不做这一步,
|
||||
* 故必须走 {@code ReportJob}。
|
||||
*
|
||||
* <p>jatools 配置(timeformat / dayformat / company / font.dirs / DB 连接键)由
|
||||
* {@link JatoolsConfig} 在 Bean 构造时注入 {@code jatools.engine.System2.properties}。
|
||||
*/
|
||||
@Service
|
||||
public class ReportService {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(ReportService.class);
|
||||
|
||||
static {
|
||||
// 引擎大量触及 java.awt(版式度量/图表/字体),无显示环境必须 headless。
|
||||
System.setProperty("java.awt.headless", "true");
|
||||
}
|
||||
|
||||
public ReportService(JatoolsConfig jatoolsConfig) {
|
||||
// 触发 JatoolsConfig 构造(@PostConstruct 注入 System2 配置)先于任何渲染。
|
||||
jatoolsConfig.ensureInitialized();
|
||||
}
|
||||
|
||||
/** 支持的导出格式。 */
|
||||
public enum Format {
|
||||
HTML, PDF, XLS;
|
||||
|
||||
static Format parse(String s) {
|
||||
if (s == null || s.isBlank()) {
|
||||
return HTML;
|
||||
}
|
||||
return switch (s.trim().toLowerCase()) {
|
||||
case "html", "dhtml", "htm" -> HTML;
|
||||
case "pdf" -> PDF;
|
||||
case "xls", "xlsx", "excel" -> XLS;
|
||||
default -> throw new IllegalArgumentException("不支持的报表格式: " + s);
|
||||
};
|
||||
}
|
||||
|
||||
public String contentType() {
|
||||
return switch (this) {
|
||||
case HTML -> "text/html;charset=UTF-8";
|
||||
case PDF -> "application/pdf";
|
||||
case XLS -> "application/vnd.ms-excel";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 渲染一张 JOR 报表模板。
|
||||
*
|
||||
* @param templateXml 模板 XML 输入流(JOR .xml,如 EIP3 report 目录里的套打模板)
|
||||
* @param params 查询参数(name → value);报表 SQL 中的 {@code ${PARAM}} 由此绑定
|
||||
* @param format {@code html} / {@code pdf} / {@code xls}(大小写不敏感)
|
||||
* @return 渲染产物字节(HTML 为 UTF-8 文本字节)
|
||||
*/
|
||||
/**
|
||||
* 渲染一张 JOR 报表模板(从 JOR XML 字符串)。等同 {@link #render(InputStream, Map, String)},
|
||||
* 便于直接喂从 DB({@code view_template}) 抽出的 JOR 文档。
|
||||
*
|
||||
* @param jorXml JOR 文档文本(以 {@code <jatools}/{@code <?xml ...><jatools} 开头)
|
||||
*/
|
||||
public byte[] render(String jorXml, Map<String, String> params, String format) {
|
||||
return render(new ByteArrayInputStream(jorXml.getBytes(StandardCharsets.UTF_8)), params, format);
|
||||
}
|
||||
|
||||
public byte[] render(InputStream templateXml, Map<String, String> params, String format) {
|
||||
Format fmt = Format.parse(format);
|
||||
File tmpDir = null;
|
||||
try {
|
||||
ReportDocument doc = ReportDocument.load(templateXml);
|
||||
|
||||
ReportJob job = new ReportJob(doc);
|
||||
if (params != null) {
|
||||
for (Map.Entry<String, String> e : params.entrySet()) {
|
||||
if (e.getKey() != null) {
|
||||
job.setParameter(e.getKey(), e.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ByteArrayOutputStream out = new ByteArrayOutputStream();
|
||||
switch (fmt) {
|
||||
case HTML -> {
|
||||
// HTML 内嵌图片等资源经 ResourceOutputFactory 落到临时目录(替代 servlet 会话沉淀)。
|
||||
tmpDir = Files.createTempDirectory("eip4-report-").toFile();
|
||||
ResourceOutputFactory imp = new FileResourceOutputFactory(tmpDir);
|
||||
OutputStreamWriter writer = new OutputStreamWriter(out, StandardCharsets.UTF_8);
|
||||
job.printAsDHTML(imp, writer);
|
||||
writer.flush();
|
||||
}
|
||||
case PDF -> job.printAsPDF(out);
|
||||
case XLS -> job.printAsXLS(out);
|
||||
}
|
||||
return out.toByteArray();
|
||||
} catch (RuntimeException e) {
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
throw new ReportRenderException("报表渲染失败 (format=" + fmt + "): " + e.getMessage(), e);
|
||||
} finally {
|
||||
deleteQuietly(tmpDir);
|
||||
}
|
||||
}
|
||||
|
||||
private static void deleteQuietly(File dir) {
|
||||
if (dir == null || !dir.exists()) {
|
||||
return;
|
||||
}
|
||||
File[] kids = dir.listFiles();
|
||||
if (kids != null) {
|
||||
for (File k : kids) {
|
||||
deleteQuietly(k);
|
||||
}
|
||||
}
|
||||
if (!dir.delete()) {
|
||||
log.debug("临时目录清理失败(忽略): {}", dir);
|
||||
}
|
||||
}
|
||||
|
||||
/** 报表渲染异常(包裹 jatools 引擎抛出的受检异常)。 */
|
||||
public static class ReportRenderException extends RuntimeException {
|
||||
public ReportRenderException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.eip4.platform.report;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.jdbc.core.JdbcTemplate;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* 按 {@code templateId} 从 EIP3 {@code view_template} 表(type=200 报表)取出可渲染的 JOR 模板。
|
||||
*
|
||||
* <p>{@code view_template.xml}(PG xml 列)对 type=200 行的结构:
|
||||
* <pre>{@code
|
||||
* <report entityid=... templateid=...>
|
||||
* <display><field .../>...</display> <!-- 列定义 -->
|
||||
* <reportfile><![CDATA[ <jatools ...>...ReportDocument... ]]></reportfile> <!-- 真正的 JOR 文档 -->
|
||||
* <field name=... uitype=.../> <!-- 查询条件字段 -->
|
||||
* </report>
|
||||
* }</pre>
|
||||
* 本类抽取 {@code <reportfile>...</reportfile>} 内层文本(剥掉 CDATA 包裹),得到以 {@code <jatools}
|
||||
* 开头、含 {@code ReportDocument} 的 JOR 文档,交给 {@link ReportService#render} 渲染。
|
||||
*/
|
||||
@Repository
|
||||
public class ReportTemplateRepository {
|
||||
|
||||
private static final Logger log = LoggerFactory.getLogger(ReportTemplateRepository.class);
|
||||
|
||||
/** 仅取 type=200 的报表模板;schema 限定到 eip3(模板/页面表所在 schema)。 */
|
||||
private static final String LOAD_SQL =
|
||||
"SELECT xml::text FROM eip3.view_template WHERE trim(view_template_id) = ? AND type = 200";
|
||||
|
||||
private final JdbcTemplate jdbcTemplate;
|
||||
|
||||
public ReportTemplateRepository(JdbcTemplate jdbcTemplate) {
|
||||
this.jdbcTemplate = jdbcTemplate;
|
||||
}
|
||||
|
||||
/**
|
||||
* 按 templateId 加载并抽取 JOR 文档。
|
||||
*
|
||||
* @param templateId {@code view_template.view_template_id}(允许含两端空白,内部 trim)
|
||||
* @return 可渲染的 JOR XML(以 {@code <jatools}/{@code <?xml ...><jatools} 开头),找不到/无 reportfile 时抛出
|
||||
*/
|
||||
public String loadJorXml(String templateId) {
|
||||
String id = templateId == null ? "" : templateId.trim();
|
||||
List<String> rows = jdbcTemplate.queryForList(LOAD_SQL, String.class, id);
|
||||
if (rows.isEmpty()) {
|
||||
throw new ReportTemplateNotFoundException("未找到 type=200 报表模板: view_template_id=" + id);
|
||||
}
|
||||
String reportXml = rows.get(0);
|
||||
if (reportXml == null || reportXml.isBlank()) {
|
||||
throw new ReportTemplateNotFoundException("报表模板 xml 为空: view_template_id=" + id);
|
||||
}
|
||||
String jor = extractReportFile(reportXml);
|
||||
if (jor == null) {
|
||||
throw new ReportTemplateNotFoundException(
|
||||
"报表模板缺少 <reportfile> JOR 文档: view_template_id=" + id);
|
||||
}
|
||||
log.debug("已加载 JOR 模板 templateId={} reportXmlBytes={} jorBytes={}", id, reportXml.length(), jor.length());
|
||||
return jor;
|
||||
}
|
||||
|
||||
/**
|
||||
* 从 {@code <report>} 外壳里抽出 {@code <reportfile>} 内层 JOR 文档。
|
||||
*
|
||||
* <p>内层通常被 {@code <![CDATA[ ... ]]>} 包裹;剥掉 CDATA 后即得以 {@code <?xml ...><jatools ...>}
|
||||
* 开头的 jatools ReportDocument。无 {@code <reportfile>} 节点时返回 {@code null}。
|
||||
*/
|
||||
static String extractReportFile(String reportXml) {
|
||||
int open = reportXml.indexOf("<reportfile");
|
||||
if (open < 0) {
|
||||
return null;
|
||||
}
|
||||
int gt = reportXml.indexOf('>', open);
|
||||
if (gt < 0) {
|
||||
return null;
|
||||
}
|
||||
int close = reportXml.indexOf("</reportfile>", gt);
|
||||
if (close < 0) {
|
||||
return null;
|
||||
}
|
||||
String inner = reportXml.substring(gt + 1, close).trim();
|
||||
if (inner.startsWith("<![CDATA[")) {
|
||||
inner = inner.substring("<![CDATA[".length());
|
||||
if (inner.endsWith("]]>")) {
|
||||
inner = inner.substring(0, inner.length() - "]]>".length());
|
||||
}
|
||||
inner = inner.trim();
|
||||
}
|
||||
return inner.isEmpty() ? null : inner;
|
||||
}
|
||||
|
||||
/** 模板未找到 / 无法抽取 JOR 文档。 */
|
||||
public static class ReportTemplateNotFoundException extends RuntimeException {
|
||||
public ReportTemplateNotFoundException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user