Commit 2d7e99e8507ec550c362be7bdf596c26f8531556

Authored by zhangchuanxi
1 parent 4ecd0e51

fix #修改公共返回对象实现 Serializable 接口

... ... @@ -6,7 +6,7 @@
6 6  
7 7 <groupId>com.irrigation</groupId>
8 8 <artifactId>common-lib</artifactId>
9   - <version>2.0.6</version>
  9 + <version>2.0.7</version>
10 10  
11 11 <properties>
12 12 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
... ...
src/main/java/com/irrigation/icl/entity/PageList.java
... ... @@ -7,6 +7,7 @@ import lombok.AllArgsConstructor;
7 7 import lombok.Data;
8 8 import lombok.NoArgsConstructor;
9 9  
  10 +import java.io.Serializable;
10 11 import java.util.List;
11 12  
12 13 /**
... ... @@ -19,7 +20,7 @@ import java.util.List;
19 20 @NoArgsConstructor
20 21 @AllArgsConstructor
21 22 @ApiModel(value = "PageList")
22   -public class PageList<E> {
  23 +public class PageList<E> implements Serializable {
23 24  
24 25 @ApiModelProperty(value = "总页数")
25 26 private int pages;
... ...
src/main/java/com/irrigation/icl/entity/PageParam.java
... ... @@ -6,6 +6,8 @@ import lombok.AllArgsConstructor;
6 6 import lombok.Data;
7 7 import lombok.NoArgsConstructor;
8 8  
  9 +import java.io.Serializable;
  10 +
9 11 /**
10 12 * @author zhangchuanxi
11 13 * @version 1.0.0
... ... @@ -15,7 +17,7 @@ import lombok.NoArgsConstructor;
15 17 @NoArgsConstructor
16 18 @AllArgsConstructor
17 19 @ApiModel(value = "PageParam")
18   -public class PageParam {
  20 +public class PageParam implements Serializable {
19 21  
20 22 @ApiModelProperty(value = "当前页")
21 23 private Integer page = 1;
... ...
src/main/java/com/irrigation/icl/entity/RestResult.java
... ... @@ -10,6 +10,8 @@ import lombok.AllArgsConstructor;
10 10 import lombok.Data;
11 11 import lombok.NoArgsConstructor;
12 12  
  13 +import java.io.Serializable;
  14 +
13 15 /**
14 16 * @param <T>
15 17 * @author zhangchuanxi
... ... @@ -20,7 +22,7 @@ import lombok.NoArgsConstructor;
20 22 @AllArgsConstructor
21 23 @NoArgsConstructor
22 24 @ApiModel(value = "RestResult")
23   -public class RestResult<T> {
  25 +public class RestResult<T> implements Serializable {
24 26 @ApiModelProperty(value = "返回编码类型", example = "200", allowableValues = "200,400")
25 27 private int code;
26 28 @ApiModelProperty(value = "返回提示消息", example = "成功")
... ...
src/main/java/com/irrigation/icl/utils/ObjectUtils.java
... ... @@ -152,7 +152,7 @@ public class ObjectUtils {
152 152 * @param cs
153 153 * @return
154 154 */
155   - public static boolean stringNonBlankB(CharSequence cs) {
  155 + public static boolean stringNonBlank(CharSequence cs) {
156 156 return !stringIsBlank(cs);
157 157 }
158 158  
... ...