You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
巴卫
f39dffa9ce
|
2 years ago | |
---|---|---|
.. | ||
ureport2-console | 2 years ago | |
ureport2-core | 2 years ago | |
ureport2-font | 2 years ago | |
ureport2-parent | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago | |
pom.xml | 2 years ago |
README.md
jnpf-datareport
特别说明:源码、JDK、MySQL、Redis等存放路径禁止包含中文、空格、特殊字符等
本项目基于
ureport2
项目改造
环境要求
特别说明: JDK版本不低于
jdk-8u281-x
版本,JDK历史版本:https://www.oracle.com/java/technologies/javase/javase8-archive-downloads.html
项目 | 推荐版本 | 说明 |
---|---|---|
JDK | 1.8.281 | JAVA环境依赖(需配置环境变量) |
Maven | 3.6.3 | 项目构建(需配置环境变量) |
Redis | 3.2.100(Windows)/6.0.x(Linux,Mac) | |
MySQL | 5.7.x+ | 数据库任选一(默认) |
SQLServer | 2012+ | 数据库任选一 |
Oracle | 11g | 数据库任选一 |
使用说明
私服配置(如有需要)
- 修改
maven下conf/settings.xml
文件 - 在
<servers></servers>
中添加
<server>
<id>maven-releases</id>
<username>jnpf-user</username>
<password>HLrQ0MA%S1nE</password>
</server>
<server>
<id>maven-snapshots</id>
<username>jnpf-user</username>
<password>HLrQ0MA%S1nE</password>
</server>
- 在
<mirrors></mirrors>
中添加
<mirror>
<id>maven-snapshots</id>
<mirrorOf>*</mirrorOf>
<name>maven-snapshots</name>
<url>https://repository.jnpfsoft.com/repository/maven-public/</url>
</mirror>
快速上手
- 打开
ureport2-console/src/main/resources
中的application.yml
- 修改配置
- 端口配置
数据库
配置和Redis
配置- 是否开启多租户
- 打开
ureport2-console/src/main/java/com.bstek.ureport.console/DataReportApplication
运行
数据集条件用法
例子
${
"select * from base_user where 1=1" +(emptyparam("F_Gender")==true?"":" and F_Gender=:F_Gender") +(emptyparam("F_RealName")==true?"":" and F_RealName like :F_RealName") +(emptyparam("F_QuickQuery")==true?"":" and F_QuickQuery like :F_QuickQuery")
}
对应参数填写
参数名 | 数据类型 | 默认值 |
---|---|---|
F_RealName | String | |
F_QuickQuery | String | |
F_Gender | Integer |