Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
d315a9b2
Commit
d315a9b2
authored
Dec 19, 2021
by
季圣华
Browse files
优化单据的搜索条件,改为可以带空格
parent
2ccc6f69
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-boot/src/main/java/com/jsh/erp/utils/StringUtil.java
View file @
d315a9b2
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment