Commit ce238b071bd4982673975061b3f959311433caa8
1 parent
f764374c99
Exists in
master
and in
8 other branches
111
Showing 1 changed file with 5 additions and 4 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/request/SieveAddRequest.java
View file @
ce238b0
... | ... | @@ -3,6 +3,7 @@ |
3 | 3 | import com.lyms.platform.common.base.IBasicRequestConvert; |
4 | 4 | import com.lyms.platform.pojo.SieveModel; |
5 | 5 | import com.lyms.platform.pojo.SieveResultModel; |
6 | +import org.apache.commons.lang.StringUtils; | |
6 | 7 | |
7 | 8 | import java.util.ArrayList; |
8 | 9 | import java.util.Collections; |
9 | 10 | |
10 | 11 | |
11 | 12 | |
... | ... | @@ -113,16 +114,16 @@ |
113 | 114 | public Integer getMax(){ |
114 | 115 | List<Integer> list =new ArrayList<>(); |
115 | 116 | |
116 | - if(null!=tszhz){ | |
117 | + if(StringUtils.isNotEmpty(tszhz)){ | |
117 | 118 | list.add(Integer.valueOf(tszhz)); |
118 | 119 | } |
119 | - if(null!=sjgjx){ | |
120 | + if(StringUtils.isNotEmpty(sjgjx)){ | |
120 | 121 | list.add(Integer.valueOf(sjgjx)); |
121 | 122 | } |
122 | - if(null!=sbst){ | |
123 | + if(StringUtils.isNotEmpty(sbst)){ | |
123 | 124 | list.add(Integer.valueOf(sbst)); |
124 | 125 | } |
125 | - if(null!=dzhpx){ | |
126 | + if(StringUtils.isNotEmpty(dzhpx)){ | |
126 | 127 | list.add(Integer.valueOf(dzhpx)); |
127 | 128 | } |
128 | 129 | return Collections.max(list); |