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