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
@@ -54,7 +54,7 @@ uploadArchives { | @@ -54,7 +54,7 @@ uploadArchives { | ||
54 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) | 54 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) |
55 | } | 55 | } |
56 | pom.project { | 56 | pom.project { |
57 | - version '1.1.10' | 57 | + version '1.1.11' |
58 | artifactId ARTIFACT_Id | 58 | artifactId ARTIFACT_Id |
59 | groupId GROUP_ID | 59 | groupId GROUP_ID |
60 | packaging TYPE | 60 | packaging TYPE |
src/main/java/com/taover/util/UtilHttpRequestMap.java
@@ -109,6 +109,9 @@ public class UtilHttpRequestMap { | @@ -109,6 +109,9 @@ public class UtilHttpRequestMap { | ||
109 | } | 109 | } |
110 | String colName = UtilString.underscoreName(keyName).toLowerCase(); | 110 | String colName = UtilString.underscoreName(keyName).toLowerCase(); |
111 | if(data.length == 1){ | 111 | if(data.length == 1){ |
112 | + if(data[0] == null || "".equals(data[0].trim())){ | ||
113 | + throw new Exception("data[0] is empty"); | ||
114 | + } | ||
112 | String typeName = camelField.getType().getSimpleName(); | 115 | String typeName = camelField.getType().getSimpleName(); |
113 | if(typeName.equals("String")){ | 116 | if(typeName.equals("String")){ |
114 | return new Object[]{colName, "like", "%"+data[0]+"%"}; | 117 | return new Object[]{colName, "like", "%"+data[0]+"%"}; |