Commit d315a9b2 authored by 季圣华's avatar 季圣华
Browse files

优化单据的搜索条件,改为可以带空格

parent 2ccc6f69
......@@ -241,7 +241,7 @@ public class StringUtil {
if(StringUtil.isNotEmpty(search)) {
JSONObject obj = JSONObject.parseObject(search);
if (obj.get(key) != null) {
value = obj.getString(key);
value = obj.getString(key).trim();
if (value.equals("")) {
value = null;
}
......@@ -256,6 +256,8 @@ public class StringUtil {
public static String toNull(String value) {
if(("").equals(value)) {
value = null;
} else {
value = value.trim();
}
return value;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment