Skip to content

Commit 817f561

Browse files
authored
v6.2.6
v6.2.6
2 parents a6dd377 + b257054 commit 817f561

File tree

2,914 files changed

+15523
-11992
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,914 files changed

+15523
-11992
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</p>
77
<p align="center">
88
<a target="_blank" href="https://search.maven.org/search?q=org.aoju">
9-
<img src="https://img.shields.io/badge/maven--central-v6.2.5-blue.svg?label=Maven%20Central" />
9+
<img src="https://img.shields.io/badge/maven--central-v6.2.6-blue.svg?label=Maven%20Central" />
1010
</a>
1111
<a target="_blank" href="https://travis-ci.org/aoju/bus">
1212
<img src="https://travis-ci.org/aoju/bus.svg?branch=master">
@@ -15,13 +15,13 @@
1515
<img src="https://img.shields.io/badge/JDK-1.8+-green.svg">
1616
</a>
1717
<a target="_blank" href="https://spring.io/projects/spring-boot">
18-
<img src="https://img.shields.io/badge/Spring Boot-2.3.0-brightgreen.svg">
18+
<img src="https://img.shields.io/badge/Spring Boot-2.5.0-brightgreen.svg">
1919
</a>
2020
<a target="_blank" href="https://www.mysql.com">
21-
<img src="https://img.shields.io/badge/Mysql-5.7-blue.svg">
21+
<img src="https://img.shields.io/badge/Mysql-8.0-blue.svg">
2222
</a>
2323
<a target="_blank" href="http://dubbo.apache.org">
24-
<img src="https://img.shields.io/badge/dubbo-2.7.5-yellow.svg">
24+
<img src="https://img.shields.io/badge/dubbo-3.0.1-yellow.svg">
2525
</a>
2626
<a target="_blank" href="http://poi.apache.org">
2727
<img src="https://img.shields.io/badge/poi-4.1.2-blue.svg">
@@ -97,7 +97,7 @@ Bus (应用/服务总线) 是一个基础框架、服务套件,它基于Java8
9797
<dependency>
9898
<groupId>org.aoju</groupId>
9999
<artifactId>bus-all</artifactId>
100-
<version>6.2.5</version>
100+
<version>6.2.6</version>
101101
</dependency>
102102
```
103103

bus-all/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.aoju</groupId>
88
<artifactId>bus-all</artifactId>
9-
<version>6.2.5</version>
9+
<version>6.2.6</version>
1010
<packaging>jar</packaging>
1111

1212
<name>${project.artifactId}</name>

bus-all/src/main/java/org/aoju/bus/Bus.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
* </p>
4444
*
4545
* @author Kimi Liu
46-
* @version 6.2.5
46+
* @version 6.2.6
4747
* @since JDK 1.8+
4848
*/
4949
public class Bus extends Version {

bus-base/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>org.aoju</groupId>
88
<artifactId>bus-base</artifactId>
9-
<version>6.2.5</version>
9+
<version>6.2.6</version>
1010
<packaging>jar</packaging>
1111

1212
<name>${project.artifactId}</name>

bus-base/src/main/java/org/aoju/bus/base/advice/BaseAdvice.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* 异常信息拦截处理
5050
*
5151
* @author Kimi Liu
52-
* @version 6.2.5
52+
* @version 6.2.6
5353
* @since JDK 1.8+
5454
*/
5555
@ControllerAdvice

bus-base/src/main/java/org/aoju/bus/base/consts/Consts.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* 公共常量
3333
*
3434
* @author Kimi Liu
35-
* @version 6.2.5
35+
* @version 6.2.6
3636
* @since JDK 1.8+
3737
*/
3838
public class Consts extends Normal {
@@ -66,4 +66,19 @@ public class Consts extends Normal {
6666
public static final String TYPE_EIGHT = Symbol.EIGHT;
6767
public static final String TYPE_NINE = Symbol.NINE;
6868

69+
/**
70+
* 响应码
71+
*/
72+
public static final String RESULT_ERRCODE = "errcode";
73+
74+
/**
75+
* 响应码描述
76+
*/
77+
public static final String RESULT_ERRMSG = "errmsg";
78+
79+
/**
80+
* 返回数据
81+
*/
82+
public static final String RESULT_DATA = "data";
83+
6984
}

bus-base/src/main/java/org/aoju/bus/base/consts/ErrorCode.java

Lines changed: 147 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,62 +35,206 @@
3535
* 系统响应码
3636
*
3737
* @author Kimi Liu
38-
* @version 6.2.5
38+
* @version 6.2.6
3939
* @since JDK 1.8+
4040
*/
4141
public class ErrorCode {
4242

4343
/**
44-
* 全局错误码
44+
* 请求成功
4545
*/
4646
public static String EM_SUCCESS = Symbol.ZERO;
47+
/**
48+
* 系统繁忙,请稍后重试
49+
*/
4750
public static String EM_FAILURE = "-1";
51+
/**
52+
* 请求过于频繁
53+
*/
4854
public static String EM_LIMITER = "-2";
55+
/**
56+
* 无效的令牌
57+
*/
4958
public static String EM_100100 = "100100";
59+
/**
60+
* 无效的参数
61+
*/
5062
public static String EM_100101 = "100101";
63+
/**
64+
* 无效的版本
65+
*/
5166
public static String EM_100102 = "100102";
67+
/**
68+
* 无效的方法
69+
*/
5270
public static String EM_100103 = "100103";
71+
/**
72+
* 无效的语言
73+
*/
5374
public static String EM_100104 = "100104";
75+
/**
76+
* 无效的格式化类型
77+
*/
5478
public static String EM_100105 = "100105";
79+
/**
80+
* 缺少token参数
81+
*/
5582
public static String EM_100106 = "100106";
83+
/**
84+
* 缺少version参数
85+
*/
5686
public static String EM_100107 = "100107";
87+
/**
88+
* 缺少method参数
89+
*/
5790
public static String EM_100108 = "100108";
91+
/**
92+
* 缺少language参数
93+
*/
5894
public static String EM_100109 = "100109";
95+
/**
96+
* 缺少fields参数
97+
*/
5998
public static String EM_100110 = "100110";
99+
/**
100+
* 缺少format参数
101+
*/
60102
public static String EM_100111 = "100111";
103+
/**
104+
* 缺少sign参数
105+
*/
61106
public static String EM_100112 = "100112";
107+
/**
108+
* 缺少noncestr参数
109+
*/
62110
public static String EM_100113 = "100113";
111+
/**
112+
* 缺少timestamp参数
113+
*/
63114
public static String EM_100114 = "100114";
115+
/**
116+
* 缺少sign参数
117+
*/
64118
public static String EM_100115 = "100115";
119+
/**
120+
* 当前令牌已过期
121+
*/
65122
public static String EM_100116 = "100116";
123+
/**
124+
* 当前账号已登录
125+
*/
66126
public static String EM_100117 = "100117";
127+
/**
128+
* 无效的签名
129+
*/
67130
public static String EM_100118 = "100118";
131+
/**
132+
* 请使用GET请求
133+
*/
68134
public static String EM_100200 = "100200";
135+
/**
136+
* 请使用POST请求
137+
*/
69138
public static String EM_100201 = "100201";
139+
/**
140+
* 请使用PUT请求
141+
*/
70142
public static String EM_100202 = "100202";
143+
/**
144+
* 请使用DELETE请求
145+
*/
71146
public static String EM_100203 = "100203";
147+
/**
148+
* 请使用OPTIONS请求
149+
*/
72150
public static String EM_100204 = "100204";
151+
/**
152+
* 请使用HEAD请求
153+
*/
73154
public static String EM_100205 = "100205";
155+
/**
156+
* 请使用PATCH请求
157+
*/
74158
public static String EM_100206 = "100206";
159+
/**
160+
* 请使用TRACE请求
161+
*/
75162
public static String EM_100207 = "100207";
163+
/**
164+
* 请使用CONNECT请求
165+
*/
76166
public static String EM_100208 = "100208";
167+
/**
168+
* 请使用HTTPS协议
169+
*/
77170
public static String EM_100209 = "100209";
171+
/**
172+
* 暂无数据
173+
*/
78174
public static String EM_100300 = "100300";
175+
/**
176+
* 转换JSON/XML错误
177+
*/
79178
public static String EM_100400 = "100400";
179+
/**
180+
* API未授权
181+
*/
80182
public static String EM_100500 = "100500";
183+
/**
184+
* 日期格式化错误
185+
*/
81186
public static String EM_100501 = "100501";
187+
/**
188+
* 账号已冻结
189+
*/
82190
public static String EM_100502 = "100502";
191+
/**
192+
* 账号已存在
193+
*/
83194
public static String EM_100503 = "100503";
195+
/**
196+
* 账号不存在
197+
*/
84198
public static String EM_100504 = "100504";
199+
/**
200+
* 密码错误
201+
*/
85202
public static String EM_100505 = "100505";
203+
/**
204+
* 通用函数,处理异常
205+
*/
86206
public static String EM_100506 = "100506";
207+
/**
208+
* 请求方法不支持
209+
*/
87210
public static String EM_100507 = "100507";
211+
/**
212+
* 不支持此类型
213+
*/
88214
public static String EM_100508 = "100508";
215+
/**
216+
* 未找到资源
217+
*/
89218
public static String EM_100509 = "100509";
219+
/**
220+
* 内部处理异常
221+
*/
90222
public static String EM_100510 = "100510";
223+
/**
224+
* 验证失败!
225+
*/
91226
public static String EM_100511 = "100511";
227+
/**
228+
* 数据已存在
229+
*/
92230
public static String EM_100512 = "100512";
231+
/**
232+
* 业务处理失败
233+
*/
93234
public static String EM_100513 = "100513";
235+
/**
236+
* 任务执行失败
237+
*/
94238
public static String EM_100514 = "100514";
95239

96240
/**
@@ -117,7 +261,7 @@ public class ErrorCode {
117261
register(EM_100112, "缺少sign参数");
118262
register(EM_100113, "缺少noncestr参数");
119263
register(EM_100114, "缺少timestamp参数");
120-
register(EM_100115, "缺少sign");
264+
register(EM_100115, "缺少sign参数");
121265
register(EM_100116, "当前令牌已过期");
122266
register(EM_100117, "当前账号已登录");
123267
register(EM_100118, "无效的签名");

bus-base/src/main/java/org/aoju/bus/base/entity/BaseEntity.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* Entity 基本信息.
4040
*
4141
* @author Kimi Liu
42-
* @version 6.2.5
42+
* @version 6.2.6
4343
* @since JDK 1.8+
4444
*/
4545
@Data
@@ -202,8 +202,9 @@ public <T> boolean isPKNotNull(T entity, String field) {
202202
* @param <T> 对象
203203
* @param entity 反射对象
204204
* @param field 属性数组
205+
* @return 返回对象属性值
205206
*/
206-
private <T> Object getValue(T entity, String field) {
207+
public <T> Object getValue(T entity, String field) {
207208
if (ReflectKit.hasField(entity, field)) {
208209
Object object = ReflectKit.invokeGetter(entity, field);
209210
return null != object ? object.toString() : null;
@@ -219,7 +220,7 @@ private <T> Object getValue(T entity, String field) {
219220
* @param fields 属性数组
220221
* @param value 值数组
221222
*/
222-
private <T> void setValue(T entity, String[] fields, Object[] value) {
223+
public <T> void setValue(T entity, String[] fields, Object[] value) {
223224
for (int i = 0; i < fields.length; i++) {
224225
String field = fields[i];
225226
if (ReflectKit.hasField(entity, field)) {

bus-base/src/main/java/org/aoju/bus/base/entity/Entity.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* Entity 实体
3636
*
3737
* @author Kimi Liu
38-
* @version 6.2.5
38+
* @version 6.2.6
3939
* @since JDK 1.8+
4040
*/
4141
@Data
@@ -53,18 +53,18 @@ public abstract class Entity implements Serializable {
5353
* 当前页码
5454
*/
5555
@Transient
56-
protected Integer pageNo;
56+
protected transient Integer pageNo = 1;
5757

5858
/**
5959
* 分页大小
6060
*/
6161
@Transient
62-
protected Integer pageSize;
62+
protected transient Integer pageSize = 100;
6363

6464
/**
6565
* 排序方式,asc desc
6666
*/
6767
@Transient
68-
protected String orderBy;
68+
protected transient String orderBy;
6969

7070
}

bus-base/src/main/java/org/aoju/bus/base/entity/Message.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
* 返回值公用类
3535
*
3636
* @author Kimi Liu
37-
* @version 6.2.5
37+
* @version 6.2.6
3838
* @since JDK 1.8+
3939
*/
4040
@Data

0 commit comments

Comments
 (0)