Skip to content

同步主干分支版本代码,并升级jedis至3.8.0 #5782

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 38 commits into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5a3631c
fix issues #5658 树表复选框与展开按钮重叠问题
Dec 18, 2023
82d051f
fix QQYUN-7583 Vue3风格表单页面多选控件渲染成了下拉多选
Dec 18, 2023
090f790
fix QQYUN-7527 vue3代码生成,默认带上高级查询
Dec 19, 2023
cdbe1cb
fix issue vue3 #939
Dec 21, 2023
7ae6a11
fix issue vue3 #939: modify file suffix
Dec 21, 2023
338902c
Merge pull request #5706 from hoperunChen/fix-issue-vue3-#939
zhangdaiscott Dec 21, 2023
d080b0b
SpringBoot3+JDK17版本可以下载了
zhangdaiscott Dec 21, 2023
98facdd
Merge branch 'master' of https://github.com/zhangdaiscott/jeecg-boot.git
zhangdaiscott Dec 21, 2023
a82213b
还原错误提交
zhangdaiscott Dec 21, 2023
c36ece8
补充信息
zhangdaiscott Dec 23, 2023
8836a27
Merge pull request #5690 from hoperunChen/fix-issues-#5658
zhangdaiscott Dec 26, 2023
6d10949
Merge pull request #5691 from hoperunChen/Fix-QQYUN-7583
zhangdaiscott Dec 26, 2023
09f92f0
提交online新依赖(解决online接口安全漏洞问题)
zhangdaiscott Dec 26, 2023
cfeb81e
Merge branch 'master' of https://github.com/zhangdaiscott/jeecg-boot.git
zhangdaiscott Dec 26, 2023
337d5a9
Merge pull request #5692 from hoperunChen/fix-QQYUN-7527
zhangdaiscott Dec 26, 2023
69287a7
小功能修改
zhangdaiscott Dec 29, 2023
48b0b60
租户改造
zhangdaiscott Dec 29, 2023
43593e8
加权限注解
zhangdaiscott Dec 29, 2023
7f0c035
企业微信集成改造
zhangdaiscott Dec 29, 2023
de3285d
通知公告
zhangdaiscott Dec 29, 2023
4c54ff6
Merge branch 'master' of https://github.com/zhangdaiscott/jeecg-boot
zhangdaiscott Dec 29, 2023
fdde84c
代码生成器更新
zhangdaiscott Dec 29, 2023
5034b7c
提供新版仪表盘
zhangdaiscott Dec 31, 2023
cd9794d
删除无用代码
zhangdaiscott Dec 31, 2023
d962c34
新版数据库,有新升级sql和权限授权配置
zhangdaiscott Jan 3, 2024
dff8c84
2024年首版本发布(仪表盘大升级)
zhangdaiscott Jan 3, 2024
1876545
2024年首版本发布(仪表盘大升级)
zhangdaiscott Jan 3, 2024
7e39b31
日志暂时不做权限控制
zhangdaiscott Jan 3, 2024
169a66f
升级新版本号3.6.2
zhangdaiscott Jan 3, 2024
e0ef20c
3.6.2版本对应的数据库脚本
zhangdaiscott Jan 3, 2024
aeaac80
2024年首版本发布(antd4和仪表盘大升级)
zhangdaiscott Jan 3, 2024
b86b4d9
从3.6.2+版本增加flyway自动升级数据库机制
zhangdaiscott Jan 3, 2024
79a62aa
从3.6.2+版本增加flyway自动升级数据库机制
zhangdaiscott Jan 3, 2024
041d881
2024年首版本发布(antd4和仪表盘大升级)
zhangdaiscott Jan 3, 2024
0bd7f71
默认删除人大金仓依赖,需要请自己放开
zhangdaiscott Jan 4, 2024
6fe8f1d
从3.6.2+版本增加flyway自动升级数据库机制
zhangdaiscott Jan 4, 2024
cdea05e
Merge branch 'master' into springboot3
EightMonth Jan 8, 2024
c5d620d
升级jedis版本至3.8.0
EightMonth Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ rebel.xml

## front
**/*.lock
os_del.cmd
os_del.cmd
os_del_doc.cmd
.svn
4 changes: 2 additions & 2 deletions README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
JEECG BOOT Low Code Development Platform
===============

当前最新版本: 3.6.1(发布日期:2023-12-11
当前最新版本: 3.6.2(发布日期:2024-01-08


[![AUR](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE)
[![](https://img.shields.io/badge/Author-guojusoft-orange.svg)](http://www.jeecg.com)
[![](https://img.shields.io/badge/Blog-blog-blue.svg)](https://jeecg.blog.csdn.net)
[![](https://img.shields.io/badge/version-3.6.1-brightgreen.svg)](https://github.com/zhangdaiscott/jeecg-boot)
[![](https://img.shields.io/badge/version-3.6.2-brightgreen.svg)](https://github.com/zhangdaiscott/jeecg-boot)
[![GitHub stars](https://img.shields.io/github/stars/zhangdaiscott/jeecg-boot.svg?style=social&label=Stars)](https://github.com/zhangdaiscott/jeecg-boot)
[![GitHub forks](https://img.shields.io/github/forks/zhangdaiscott/jeecg-boot.svg?style=social&label=Fork)](https://github.com/zhangdaiscott/jeecg-boot)

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
JEECG BOOT 低代码开发平台
===============

当前最新版本: 3.6.1(发布日期:2023-12-11
当前最新版本: 3.6.2(发布日期:2024-01-08


[![AUR](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://github.com/zhangdaiscott/jeecg-boot/blob/master/LICENSE)
[![](https://img.shields.io/badge/Author-北京国炬软件-orange.svg)](http://jeecg.com/aboutusIndex)
[![](https://img.shields.io/badge/Blog-官方博客-blue.svg)](https://jeecg.blog.csdn.net)
[![](https://img.shields.io/badge/version-3.6.1-brightgreen.svg)](https://github.com/zhangdaiscott/jeecg-boot)
[![](https://img.shields.io/badge/version-3.6.2-brightgreen.svg)](https://github.com/zhangdaiscott/jeecg-boot)
[![GitHub stars](https://img.shields.io/github/stars/zhangdaiscott/jeecg-boot.svg?style=social&label=Stars)](https://github.com/zhangdaiscott/jeecg-boot)
[![GitHub forks](https://img.shields.io/github/forks/zhangdaiscott/jeecg-boot.svg?style=social&label=Fork)](https://github.com/zhangdaiscott/jeecg-boot)

Expand Down Expand Up @@ -49,6 +49,7 @@ Jeecg-Boot低代码开发平台,可以应用在任何J2EE项目的开发中,
| Github | [jeecgboot-vue3](https://github.com/jeecgboot/jeecgboot-vue3) | [jeecg-boot](https://github.com/jeecgboot/jeecg-boot) |
| 码云 | [jeecgboot-vue3](https://gitee.com/jeecg/jeecgboot-vue3) | [jeecg-boot](https://gitee.com/jeecg/jeecg-boot) |

> 官方已推出 `SpringBoot3+JDK17版本` [分支源码下载](https://github.com/jeecgboot/jeecg-boot/tree/springboot3) | [升级SpringBoot3博客](https://blog.csdn.net/zhangdaiscott/article/details/134805602)

#### 项目说明

Expand All @@ -57,7 +58,6 @@ Jeecg-Boot低代码开发平台,可以应用在任何J2EE项目的开发中,
| `jeecgboot-vue3` | 前端源码 (Vue3版本) |
| `jeecg-boot` | 后端JAVA源码(支持微服务) |
| `jeecg-uniapp` | [APP开发框架,一份代码多终端适配,同时支持APP、小程序、H5](https://github.com/jeecgboot/jeecg-uniapp) |
| `SpringBoot3+JDK17 后端分支` | [分支源码](https://github.com/jeecgboot/jeecg-boot/tree/springboot3) [升级博客](https://blog.csdn.net/zhangdaiscott/article/details/134805602) |
| `更多开源项目` | [更多底层源码下载](http://jeecg.com/download) |


Expand All @@ -83,7 +83,7 @@ Docker快速启动项目
-----------------------------------

- 项目官网: [http://www.jeecg.com](http://www.jeecg.com)
- 开发文档: [http://help.jeecg.com](http://help.jeecg.com)
- 开发文档: [https://help.jeecg.com](https://help.jeecg.com)
- 新手指南: [快速入门](http://www.jeecg.com/doc/quickstart) | [常见问题 ](http://www.jeecg.com/doc/qa) | [视频教程](https://space.bilibili.com/454617261/channel/series) | [1分钟低代码体验](https://my.oschina.net/jeecg/blog/3083313)

- 在线演示 : [Vue3演示](http://boot3.jeecg.com) | [APP演示](http://jeecg.com/appIndex) | [敲敲云零代码](https://qiaoqiaoyun.com)
Expand Down
294 changes: 207 additions & 87 deletions db/jeecgboot-mysql-5.7.sql

Large diffs are not rendered by default.

Binary file modified db/其他数据库/jeecgboot-oracle11g.dmp
Binary file not shown.
6,723 changes: 3,491 additions & 3,232 deletions db/其他数据库/jeecgboot-oracle11g.sql

Large diffs are not rendered by default.

1,497 changes: 902 additions & 595 deletions db/其他数据库/jeecgboot-sqlserver2019.sql

Large diffs are not rendered by default.

11 changes: 0 additions & 11 deletions db/增量SQL/3.6.0升级到3.6.1升级脚本.sql

This file was deleted.

11 changes: 0 additions & 11 deletions db/增量SQL/版本升级说明.txt

This file was deleted.

15 changes: 15 additions & 0 deletions db/版本升级说明.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# 版本升级方法

> JeecgBoot属于平台级产品,每次升级改动较大,目前做不到平滑升级。

### 增量升级方案
#### 1.代码合并
本地通过svn或git做好主干,在分支上做业务开发,jeecg每次版本发布,可以手工覆盖主干的代码,对比合并代码;

#### 2.数据库升级
- 从3.6.2+版本增加flyway自动升级数据库机制,支持 mysql5.7、mysql8;
- 其他库请手工执行SQL, 目录: `jeecg-module-system\jeecg-system-start\src\main\resources\flyway\sql\mysql`
> 注意: 升级sql只提供mysql版本;如果有权限升级, 还需要手工角色授权,退出重新登录才好使。

#### 3.兼容问题
每次发版,会针对不兼容地方重点说明。
4 changes: 2 additions & 2 deletions jeecg-boot-base-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>org.jeecgframework.boot</groupId>
<artifactId>jeecg-boot-parent</artifactId>
<version>3.6.1</version>
<version>3.6.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jeecg-boot-base-core</artifactId>
Expand Down Expand Up @@ -210,7 +210,7 @@
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
<version>${jedis.version}</version>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,17 @@ public interface CommonAPI {
*/
Map<String, List<DictModel>> translateManyDict(String dictCodes, String keys);

//update-begin---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
/**
* 15 字典表的 翻译,可批量
* @param table
* @param text
* @param code
* @param keys 多个用逗号分割
* @param dataSource 数据源
* @return
*/
List<DictModel> translateDictFromTableByKeys(String table, String text, String code, String keys);
List<DictModel> translateDictFromTableByKeys(String table, String text, String code, String keys, String dataSource);
//update-end---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------

}
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,15 @@ private Object parseDictText(Object result) {
String code = field.getAnnotation(Dict.class).dicCode();
String text = field.getAnnotation(Dict.class).dicText();
String table = field.getAnnotation(Dict.class).dictTable();

//update-begin---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
String dataSource = field.getAnnotation(Dict.class).ds();
//update-end---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
List<String> dataList;
String dictCode = code;
if (!StringUtils.isEmpty(table)) {
dictCode = String.format("%s,%s,%s", table, text, code);
//update-begin---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
dictCode = String.format("%s,%s,%s,%s", table, text, code, dataSource);
//update-end---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
}
dataList = dataListMap.computeIfAbsent(dictCode, k -> new ArrayList<>());
this.listAddAllDeduplicate(dataList, Arrays.asList(value.split(",")));
Expand All @@ -169,10 +173,15 @@ private Object parseDictText(Object result) {
String code = field.getAnnotation(Dict.class).dicCode();
String text = field.getAnnotation(Dict.class).dicText();
String table = field.getAnnotation(Dict.class).dictTable();

//update-begin---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
// 自定义的字典表数据源
String dataSource = field.getAnnotation(Dict.class).ds();
//update-end---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
String fieldDictCode = code;
if (!StringUtils.isEmpty(table)) {
fieldDictCode = String.format("%s,%s,%s", table, text, code);
//update-begin---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
fieldDictCode = String.format("%s,%s,%s,%s", table, text, code, dataSource);
//update-end---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
}

String value = record.getString(field.getName());
Expand Down Expand Up @@ -274,9 +283,18 @@ private Map<String, List<DictModel>> translateAllDict(Map<String, List<String>>
String[] arr = dictCode.split(",");
String table = arr[0], text = arr[1], code = arr[2];
String values = String.join(",", needTranslDataTable);
//update-begin---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
// 自定义的数据源
String dataSource = null;
if (arr.length > 3) {
dataSource = arr[3];
}
//update-end---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
log.debug("translateDictFromTableByKeys.dictCode:" + dictCode);
log.debug("translateDictFromTableByKeys.values:" + values);
List<DictModel> texts = commonApi.translateDictFromTableByKeys(table, text, code, values);
//update-begin---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
List<DictModel> texts = commonApi.translateDictFromTableByKeys(table, text, code, values, dataSource);
//update-end---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
log.debug("translateDictFromTableByKeys.result:" + texts);
List<DictModel> list = translText.computeIfAbsent(dictCode, k -> new ArrayList<>());
list.addAll(texts);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,16 @@
* @return 返回类型: String
*/
String dictTable() default "";


//update-begin---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
/**
* 方法描述: 数据字典表所在数据源名称
* 作 者: chenrui
* 日 期: 2023年12月20日-下午4:58
*
* @return 返回类型: String
*/
String ds() default "";
//update-end---author:chenrui ---date:20231221 for:[issues/#5643]解决分布式下表字典跨库无法查询问题------------
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public interface CommonConstant {

/** {@code 500 Server Error} (HTTP/1.0 - RFC 1945) */
Integer SC_INTERNAL_SERVER_ERROR_500 = 500;
/** {@code 404 Not Found} (HTTP/1.0 - RFC 1945) */
Integer SC_INTERNAL_NOT_FOUND_404 = 404;
/** {@code 200 OK} (HTTP/1.0 - RFC 1945) */
Integer SC_OK_200 = 200;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public interface DataBaseConstant {

/**postgreSQL达梦数据库*/
public static final String DB_TYPE_POSTGRESQL = "POSTGRESQL";

/**人大金仓数据库*/
public static final String DB_TYPE_KINGBASEES = "KINGBASEES";

/**sqlserver数据库*/
public static final String DB_TYPE_SQLSERVER = "SQLSERVER";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
package org.jeecg.common.exception;

import org.jeecg.common.constant.CommonConstant;

/**
* @Description: jeecg-boot自定义异常
* @author: jeecg-boot
*/
public class JeecgBootException extends RuntimeException {
private static final long serialVersionUID = 1L;

/**
* 返回给前端的错误code
*/
private int errCode = CommonConstant.SC_INTERNAL_SERVER_ERROR_500;

public JeecgBootException(String message){
super(message);
}


public JeecgBootException(String message, int errCode){
super(message);
this.errCode = errCode;
}

public int getErrCode() {
return errCode;
}

public JeecgBootException(Throwable cause)
{
super(cause);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class JeecgBootExceptionHandler {
@ExceptionHandler(JeecgBootException.class)
public Result<?> handleJeecgBootException(JeecgBootException e){
log.error(e.getMessage(), e);
return Result.error(e.getMessage());
return Result.error(e.getErrCode(), e.getMessage());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ private static String getDatabaseTypeByDataSource(DataSource dataSource) throws
DB_TYPE = DataBaseConstant.DB_TYPE_ORACLE;
}else if(dbType.indexOf(DataBaseConstant.DB_TYPE_SQLSERVER)>=0||dbType.indexOf(sqlserver)>=0) {
DB_TYPE = DataBaseConstant.DB_TYPE_SQLSERVER;
}else if(dbType.indexOf(DataBaseConstant.DB_TYPE_POSTGRESQL)>=0) {
}else if(dbType.indexOf(DataBaseConstant.DB_TYPE_POSTGRESQL)>=0 || dbType.indexOf(DataBaseConstant.DB_TYPE_KINGBASEES)>=0) {
DB_TYPE = DataBaseConstant.DB_TYPE_POSTGRESQL;
}else if(dbType.indexOf(DataBaseConstant.DB_TYPE_MARIADB)>=0) {
DB_TYPE = DataBaseConstant.DB_TYPE_MARIADB;
Expand Down
Loading