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
6dfc67b1
Commit
6dfc67b1
authored
Oct 11, 2023
by
liuChang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查业主
parent
82fd2ffb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
BusinessOpportunityRadarService.java
...m/dsk/search/service/BusinessOpportunityRadarService.java
+5
-7
MarketAnalysisService.java
...in/java/com/dsk/search/service/MarketAnalysisService.java
+4
-4
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/search/service/BusinessOpportunityRadarService.java
View file @
6dfc67b1
...
@@ -91,29 +91,27 @@ public class BusinessOpportunityRadarService {
...
@@ -91,29 +91,27 @@ public class BusinessOpportunityRadarService {
}
}
ArrayList
<
String
>
companyNames
=
new
ArrayList
<>();
ArrayList
<
String
>
companyNames
=
new
ArrayList
<>();
ArrayList
<
Long
>
cIds
=
new
ArrayList
<>();
for
(
Object
dataMap
:
list
)
{
for
(
Object
dataMap
:
list
)
{
String
name
=
MapUtils
.
getString
(
CommonUtils
.
assertAsMap
(
dataMap
),
"
companyN
ame"
);
String
name
=
MapUtils
.
getString
(
CommonUtils
.
assertAsMap
(
dataMap
),
"
n
ame"
);
if
(
ObjectUtil
.
isNotEmpty
(
name
)
&&
name
.
contains
(
"font"
))
{
if
(
ObjectUtil
.
isNotEmpty
(
name
)
&&
name
.
contains
(
"font"
))
{
name
=
name
.
replaceAll
(
"<font color='
red
'>"
,
""
);
name
=
name
.
replaceAll
(
"<font color='
#FF204E
'>"
,
""
);
name
=
name
.
replaceAll
(
"</font>"
,
""
);
name
=
name
.
replaceAll
(
"</font>"
,
""
);
companyNames
.
add
(
name
);
companyNames
.
add
(
name
);
}
else
{
}
else
{
companyNames
.
add
(
name
);
companyNames
.
add
(
name
);
}
}
cIds
.
add
(
MapUtils
.
getLong
(
CommonUtils
.
assertAsMap
(
dataMap
),
"companyId"
));
}
}
List
<
CustomerStatusListVo
>
claimStatusList
=
iCustomerService
.
selectStatusListByCompanyName
(
companyNames
);
List
<
CustomerStatusListVo
>
claimStatusList
=
iCustomerService
.
selectStatusListByCompanyName
(
companyNames
);
for
(
Object
enterprise
:
list
)
{
for
(
Object
enterprise
:
list
)
{
Map
<
String
,
Object
>
companyMap
=
CommonUtils
.
assertAsMap
(
enterprise
);
Map
<
String
,
Object
>
companyMap
=
CommonUtils
.
assertAsMap
(
enterprise
);
String
companyName
=
MapUtils
.
getString
(
companyMap
,
"
companyN
ame"
,
""
);
String
companyName
=
MapUtils
.
getString
(
companyMap
,
"
n
ame"
,
""
);
if
(
ObjectUtil
.
isNotEmpty
(
companyName
)
&&
companyName
.
contains
(
"font"
))
{
if
(
ObjectUtil
.
isNotEmpty
(
companyName
)
&&
companyName
.
contains
(
"font"
))
{
companyName
=
companyName
.
replace
(
"<font color='
red
'>"
,
""
);
companyName
=
companyName
.
replace
(
"<font color='
#FF204E
'>"
,
""
);
companyName
=
companyName
.
replace
(
"</font>"
,
""
);
companyName
=
companyName
.
replace
(
"</font>"
,
""
);
}
}
companyMap
.
put
(
"claimStatus"
,
null
);
companyMap
.
put
(
"claimStatus"
,
0
);
for
(
CustomerStatusListVo
vo
:
claimStatusList
)
{
for
(
CustomerStatusListVo
vo
:
claimStatusList
)
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
());
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
());
...
...
dsk-module/dsk-biz-api/src/main/java/com/dsk/search/service/MarketAnalysisService.java
View file @
6dfc67b1
...
@@ -127,8 +127,8 @@ public class MarketAnalysisService {
...
@@ -127,8 +127,8 @@ public class MarketAnalysisService {
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"data"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"data"
)))
{
List
<
Map
<
String
,
Object
>>
list
=
(
List
<
Map
<
String
,
Object
>>)
map
.
get
(
"data"
);
List
<
Map
<
String
,
Object
>>
list
=
(
List
<
Map
<
String
,
Object
>>)
map
.
get
(
"data"
);
list
.
parallelStream
().
forEach
(
res
->
{
list
.
parallelStream
().
forEach
(
res
->
{
Integer
companyId
=
MapUtils
.
getInteger
(
res
,
"
company
Id"
);
Integer
companyId
=
MapUtils
.
getInteger
(
res
,
"
tenderee
Id"
);
String
companyName
=
MapUtils
.
getString
(
res
,
"
companyNam
e"
);
String
companyName
=
MapUtils
.
getString
(
res
,
"
tendere
e"
);
res
.
put
(
"uipId"
,
enterpriseService
.
getUipIdByCompanyNameOrCompanyId
(
companyName
,
companyId
));
res
.
put
(
"uipId"
,
enterpriseService
.
getUipIdByCompanyNameOrCompanyId
(
companyName
,
companyId
));
});
});
}
}
...
@@ -140,8 +140,8 @@ public class MarketAnalysisService {
...
@@ -140,8 +140,8 @@ public class MarketAnalysisService {
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"data"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
map
.
get
(
"data"
)))
{
List
<
Map
<
String
,
Object
>>
list
=
(
List
<
Map
<
String
,
Object
>>)
map
.
get
(
"data"
);
List
<
Map
<
String
,
Object
>>
list
=
(
List
<
Map
<
String
,
Object
>>)
map
.
get
(
"data"
);
list
.
parallelStream
().
forEach
(
res
->
{
list
.
parallelStream
().
forEach
(
res
->
{
Integer
companyId
=
MapUtils
.
getInteger
(
res
,
"
tenderee
Id"
);
Integer
companyId
=
MapUtils
.
getInteger
(
res
,
"
company
Id"
);
String
companyName
=
MapUtils
.
getString
(
res
,
"
tendere
e"
);
String
companyName
=
MapUtils
.
getString
(
res
,
"
companyNam
e"
);
res
.
put
(
"uipId"
,
enterpriseService
.
getUipIdByCompanyNameOrCompanyId
(
companyName
,
companyId
));
res
.
put
(
"uipId"
,
enterpriseService
.
getUipIdByCompanyNameOrCompanyId
(
companyName
,
companyId
));
});
});
}
}
...
...
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