Commit de0941667366f0c5e2e68a5f2cf554b778ad59c0
1 parent
04eef27c
Exists in
master
deploy new version
Showing
2 changed files
with
4 additions
and
1 deletions
 
Show diff stats
build.gradle
src/main/java/com/taover/util/UtilHttpRequestMap.java
| ... | ... | @@ -109,6 +109,9 @@ public class UtilHttpRequestMap { | 
| 109 | 109 | } | 
| 110 | 110 | String colName = UtilString.underscoreName(keyName).toLowerCase(); | 
| 111 | 111 | if(data.length == 1){ | 
| 112 | + if(data[0] == null || "".equals(data[0].trim())){ | |
| 113 | + throw new Exception("data[0] is empty"); | |
| 114 | + } | |
| 112 | 115 | String typeName = camelField.getType().getSimpleName(); | 
| 113 | 116 | if(typeName.equals("String")){ | 
| 114 | 117 | return new Object[]{colName, "like", "%"+data[0]+"%"}; | ... | ... |