Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit c816ca13
authored
Oct 20, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复新增工单姓名为空不能同步包活干的问题
1 parent
93693476
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
src/main/java/cn/com/glsx/stdinterface/modules/service/BhgBizService.java
src/test/java/cn/com/glsx/stdinterface/modules/MainTest.java
src/main/java/cn/com/glsx/stdinterface/modules/service/BhgBizService.java
View file @
c816ca1
...
@@ -65,7 +65,7 @@ public class BhgBizService {
...
@@ -65,7 +65,7 @@ public class BhgBizService {
map
.
put
(
"phoneNumber"
,
StringUtils
.
isNotEmpty
(
workOrder
.
getShopTelephone
())
?
workOrder
.
getShopTelephone
().
trim
()
:
""
);
map
.
put
(
"phoneNumber"
,
StringUtils
.
isNotEmpty
(
workOrder
.
getShopTelephone
())
?
workOrder
.
getShopTelephone
().
trim
()
:
""
);
map
.
put
(
"district"
,
""
);
//不要给值,包活干那边为数值类型
map
.
put
(
"district"
,
""
);
//不要给值,包活干那边为数值类型
map
.
put
(
"carOwner"
,
StringUtils
.
isNotEmpty
(
woVehicle
.
getLesseeName
())
?
woVehicle
.
getLesseeName
().
trim
()
:
"--"
);
map
.
put
(
"carOwner"
,
StringUtils
.
isNotEmpty
(
woVehicle
.
getLesseeName
())
?
StringUtils
.
isNotEmpty
(
woVehicle
.
getLesseeName
().
trim
())
?
woVehicle
.
getLesseeName
().
trim
()
:
"--"
:
"--"
);
map
.
put
(
"carOwnerPhone"
,
StringUtils
.
isNotEmpty
(
woVehicle
.
getLesseePhone
())
?
woVehicle
.
getLesseePhone
().
trim
()
:
""
);
map
.
put
(
"carOwnerPhone"
,
StringUtils
.
isNotEmpty
(
woVehicle
.
getLesseePhone
())
?
woVehicle
.
getLesseePhone
().
trim
()
:
""
);
map
.
put
(
"vinNo"
,
StringUtils
.
isNotEmpty
(
woVehicle
.
getVin
())
?
woVehicle
.
getVin
().
trim
()
:
""
);
map
.
put
(
"vinNo"
,
StringUtils
.
isNotEmpty
(
woVehicle
.
getVin
())
?
woVehicle
.
getVin
().
trim
()
:
""
);
...
...
src/test/java/cn/com/glsx/stdinterface/modules/MainTest.java
View file @
c816ca1
...
@@ -28,9 +28,11 @@ public class MainTest {
...
@@ -28,9 +28,11 @@ public class MainTest {
//
//
// System.out.println(JSONUtil.toJsonStr(request));
// System.out.println(JSONUtil.toJsonStr(request));
List
<
String
>
stringList
=
Lists
.
newArrayList
();
// List<String> stringList = Lists.newArrayList();
List
<
String
>
a
=
stringList
.
stream
().
filter
(
str
->
str
.
contains
(
"a"
)).
collect
(
Collectors
.
toList
());
// List<String> a = stringList.stream().filter(str -> str.contains("a")).collect(Collectors.toList());
System
.
out
.
println
(
"a = "
+
a
);
// System.out.println("a = " + a);
String
a
=
" "
;
System
.
out
.
println
(
"a.length() = "
+
a
.
length
());
}
}
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment