Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
0742dbf3
Commit
0742dbf3
authored
Aug 24, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- 来源去重
parent
71fab115
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
EnterpriseBussinessService.java
...com/dsk/system/dskService/EnterpriseBussinessService.java
+20
-0
No files found.
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseBussinessService.java
View file @
0742dbf3
...
@@ -84,12 +84,22 @@ public class EnterpriseBussinessService {
...
@@ -84,12 +84,22 @@ public class EnterpriseBussinessService {
dataMap
.
put
(
"sourceList"
,
null
);
dataMap
.
put
(
"sourceList"
,
null
);
String
source
=
MapUtils
.
getString
(
dataMap
,
"source"
);
String
source
=
MapUtils
.
getString
(
dataMap
,
"source"
);
if
(
ObjectUtil
.
isNotEmpty
(
source
))
{
if
(
ObjectUtil
.
isNotEmpty
(
source
))
{
List
<
EnterpriseBussinessVo
>
enterpriseSource
=
new
ArrayList
<>();
List
<
EnterpriseBussinessVo
>
enterpriseBussinessVoList
=
JSONUtil
.
toList
(
source
,
EnterpriseBussinessVo
.
class
);
List
<
EnterpriseBussinessVo
>
enterpriseBussinessVoList
=
JSONUtil
.
toList
(
source
,
EnterpriseBussinessVo
.
class
);
if
(
ObjectUtil
.
isNotEmpty
(
enterpriseBussinessVoList
.
get
(
0
)))
{
if
(
ObjectUtil
.
isNotEmpty
(
enterpriseBussinessVoList
.
get
(
0
)))
{
EnterpriseBussinessVo
vo
=
enterpriseBussinessVoList
.
get
(
0
);
EnterpriseBussinessVo
vo
=
enterpriseBussinessVoList
.
get
(
0
);
dataMap
.
put
(
"sourceId"
,
vo
.
getSource_id
());
dataMap
.
put
(
"sourceId"
,
vo
.
getSource_id
());
dataMap
.
put
(
"sourceType"
,
vo
.
getSource_type
());
dataMap
.
put
(
"sourceType"
,
vo
.
getSource_type
());
dataMap
.
put
(
"sourceList"
,
enterpriseBussinessVoList
);
dataMap
.
put
(
"sourceList"
,
enterpriseBussinessVoList
);
if
(
ObjectUtil
.
isNotEmpty
(
body
.
getSources
()))
{
for
(
EnterpriseBussinessVo
bussinessVo
:
enterpriseBussinessVoList
)
{
String
source_type
=
bussinessVo
.
getSource_type
();
if
(
body
.
getSources
().
contains
(
source_type
))
{
enterpriseSource
.
add
(
bussinessVo
);
}
}
dataMap
.
put
(
"sourceList"
,
enterpriseSource
);
}
}
}
}
}
}
}
...
@@ -173,12 +183,22 @@ public class EnterpriseBussinessService {
...
@@ -173,12 +183,22 @@ public class EnterpriseBussinessService {
dataMap
.
put
(
"sourceType"
,
null
);
dataMap
.
put
(
"sourceType"
,
null
);
String
source
=
MapUtils
.
getString
(
dataMap
,
"source"
);
String
source
=
MapUtils
.
getString
(
dataMap
,
"source"
);
if
(
ObjectUtil
.
isNotEmpty
(
source
))
{
if
(
ObjectUtil
.
isNotEmpty
(
source
))
{
List
<
EnterpriseBussinessVo
>
enterpriseSource
=
new
ArrayList
<>();
List
<
EnterpriseBussinessVo
>
enterpriseBussinessVoList
=
JSONUtil
.
toList
(
source
,
EnterpriseBussinessVo
.
class
);
List
<
EnterpriseBussinessVo
>
enterpriseBussinessVoList
=
JSONUtil
.
toList
(
source
,
EnterpriseBussinessVo
.
class
);
if
(
ObjectUtil
.
isNotEmpty
(
enterpriseBussinessVoList
.
get
(
0
)))
{
if
(
ObjectUtil
.
isNotEmpty
(
enterpriseBussinessVoList
.
get
(
0
)))
{
EnterpriseBussinessVo
vo
=
enterpriseBussinessVoList
.
get
(
0
);
EnterpriseBussinessVo
vo
=
enterpriseBussinessVoList
.
get
(
0
);
dataMap
.
put
(
"sourceId"
,
vo
.
getSource_id
());
dataMap
.
put
(
"sourceId"
,
vo
.
getSource_id
());
dataMap
.
put
(
"sourceType"
,
vo
.
getSource_type
());
dataMap
.
put
(
"sourceType"
,
vo
.
getSource_type
());
dataMap
.
put
(
"sourceList"
,
enterpriseBussinessVoList
);
dataMap
.
put
(
"sourceList"
,
enterpriseBussinessVoList
);
if
(
ObjectUtil
.
isNotEmpty
(
body
.
getSources
()))
{
for
(
EnterpriseBussinessVo
bussinessVo
:
enterpriseBussinessVoList
)
{
String
source_type
=
bussinessVo
.
getSource_type
();
if
(
body
.
getSources
().
contains
(
source_type
))
{
enterpriseSource
.
add
(
bussinessVo
);
}
}
dataMap
.
put
(
"sourceList"
,
enterpriseSource
);
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
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