Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7f185262
authored
Sep 28, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:假性离线原因,显示重复的设备号
1 parent
63906f31
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
src/main/java/cn/com/glsx/admin/modules/service/FakeOfflineService.java
src/main/resources/mapper/FakeOfflineChangeFrequentlyMapper.xml
src/main/java/cn/com/glsx/admin/modules/service/FakeOfflineService.java
View file @
7f18526
...
@@ -125,13 +125,13 @@ public class FakeOfflineService extends AbstractCommonService {
...
@@ -125,13 +125,13 @@ public class FakeOfflineService extends AbstractCommonService {
.
map
(
FakeOfficeExport:
:
getVin
)
.
map
(
FakeOfficeExport:
:
getVin
)
.
filter
(
vin
->
Objects
.
equals
(
FakeOfficeReasonEnum
.
CHANGE_FREQUENTLY
.
getCode
(),
reasonMap
.
get
(
vin
)))
.
filter
(
vin
->
Objects
.
equals
(
FakeOfficeReasonEnum
.
CHANGE_FREQUENTLY
.
getCode
(),
reasonMap
.
get
(
vin
)))
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
Map
<
String
,
Lis
t
<
String
>>
snMap
=
Maps
.
newHashMap
();
Map
<
String
,
Se
t
<
String
>>
snMap
=
Maps
.
newHashMap
();
if
(
CollectionUtil
.
isNotEmpty
(
changeFrequentlyVinList
))
{
if
(
CollectionUtil
.
isNotEmpty
(
changeFrequentlyVinList
))
{
List
<
FakeOfflineChangeFrequently
>
list
=
fakeOfflineChangeFrequentlyMapper
.
listByVin
(
changeFrequentlyVinList
);
List
<
FakeOfflineChangeFrequently
>
list
=
fakeOfflineChangeFrequentlyMapper
.
listByVin
(
changeFrequentlyVinList
);
snMap
=
list
.
stream
()
snMap
=
list
.
stream
()
.
collect
(
Collectors
.
groupingBy
(
.
collect
(
Collectors
.
groupingBy
(
FakeOfflineChangeFrequently:
:
getVin
,
FakeOfflineChangeFrequently:
:
getVin
,
Collectors
.
mapping
(
FakeOfflineChangeFrequently:
:
getSn
,
Collectors
.
to
Lis
t
())
Collectors
.
mapping
(
FakeOfflineChangeFrequently:
:
getSn
,
Collectors
.
to
Se
t
())
));
));
}
}
...
...
src/main/resources/mapper/FakeOfflineChangeFrequentlyMapper.xml
View file @
7f18526
...
@@ -39,6 +39,7 @@
...
@@ -39,6 +39,7 @@
from t_fake_offline_change_frequently tfocf
from t_fake_offline_change_frequently tfocf
<where>
<where>
and del_flag = 0
and del_flag = 0
and status = 1
and vin in
and vin in
<foreach
collection=
"vinCollection"
item=
"vin"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"vinCollection"
item=
"vin"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{vin}
#{vin}
...
...
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