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
41b0d8ef
Commit
41b0d8ef
authored
Aug 24, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- 信用评级
parent
ff8ee477
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
43 deletions
+43
-43
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+17
-17
UrbanInvestmentPlatformServiceImpl.java
...stem/service/impl/UrbanInvestmentPlatformServiceImpl.java
+26
-26
No files found.
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
41b0d8ef
...
@@ -289,17 +289,17 @@ public class EnterpriseService {
...
@@ -289,17 +289,17 @@ public class EnterpriseService {
List
<
CustomerStatusListVo
>
claimStatusList
=
iCustomerService
.
selectStatusListByCompanyName
(
companyNames
);
List
<
CustomerStatusListVo
>
claimStatusList
=
iCustomerService
.
selectStatusListByCompanyName
(
companyNames
);
Map
<
String
,
Object
>
bondCreditRatingBatchMap
=
new
HashMap
<>(
1
);
//
Map<String, Object> bondCreditRatingBatchMap = new HashMap<>(1);
bondCreditRatingBatchMap
.
put
(
"cIds"
,
cIds
);
//
bondCreditRatingBatchMap.put("cIds", cIds);
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/bondCreditRatingBatch"
,
bondCreditRatingBatchMap
);
//
Map<String, Object> bondCreditRatingMap = dskOpenApiUtil.requestBody("/operate/enterprise/bondCreditRatingBatch", bondCreditRatingBatchMap);
Integer
codeRating
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
//
Integer codeRating = MapUtils.getInteger(bondCreditRatingMap, "code", 300);
ArrayList
<
Map
<
String
,
Object
>>
objArrayList
=
new
ArrayList
(
1
);
//
ArrayList<Map<String, Object>> objArrayList = new ArrayList(1);
if
(
codeRating
.
equals
(
HttpStatus
.
OK
.
value
()))
{
//
if (codeRating.equals(HttpStatus.OK.value())) {
Object
object
=
bondCreditRatingMap
.
get
(
"data"
);
//
Object object = bondCreditRatingMap.get("data");
if
(
ObjectUtil
.
isNotEmpty
(
object
))
{
//
if (ObjectUtil.isNotEmpty(object)) {
objArrayList
=
(
ArrayList
)
object
;
//
objArrayList = (ArrayList) object;
}
//
}
}
//
}
//按照城投企业id合并两个list
//按照城投企业id合并两个list
for
(
Object
companyObj
:
list
)
{
for
(
Object
companyObj
:
list
)
{
...
@@ -354,12 +354,12 @@ public class EnterpriseService {
...
@@ -354,12 +354,12 @@ public class EnterpriseService {
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
());
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
());
}
}
}
}
for
(
Map
<
String
,
Object
>
m
:
objArrayList
)
{
//
for (Map<String, Object> m : objArrayList) {
Long
companyIdCredit
=
MapUtils
.
getLong
(
m
,
"companyId"
,
0L
);
//
Long companyIdCredit = MapUtils.getLong(m, "companyId", 0L);
if
(
companyIdCredit
.
equals
(
companyId
))
{
//
if (companyIdCredit.equals(companyId)) {
companyMap
.
put
(
"bratingSubjectLevel"
,
m
.
get
(
"bratingSubjectLevel"
));
//
companyMap.put("bratingSubjectLevel", m.get("bratingSubjectLevel"));
}
//
}
}
//
}
}
}
return
new
TableDataInfo
(
list
,
MapUtils
.
getInteger
(
data
,
"totalCount"
,
0
));
return
new
TableDataInfo
(
list
,
MapUtils
.
getInteger
(
data
,
"totalCount"
,
0
));
...
...
dsk-system/src/main/java/com/dsk/system/service/impl/UrbanInvestmentPlatformServiceImpl.java
View file @
41b0d8ef
...
@@ -62,17 +62,17 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
...
@@ -62,17 +62,17 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
}
}
List
<
CustomerStatusListVo
>
customerStatusListVos
=
iCustomerService
.
selectStatusListByCompanyName
(
companyNames
);
List
<
CustomerStatusListVo
>
customerStatusListVos
=
iCustomerService
.
selectStatusListByCompanyName
(
companyNames
);
Map
<
String
,
Object
>
bondCreditRatingBatchMap
=
new
HashMap
<>(
1
);
//
Map<String, Object> bondCreditRatingBatchMap = new HashMap<>(1);
bondCreditRatingBatchMap
.
put
(
"cIds"
,
cIds
);
//
bondCreditRatingBatchMap.put("cIds", cIds);
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/operate/enterprise/bondCreditRatingBatch"
,
bondCreditRatingBatchMap
);
//
Map<String, Object> bondCreditRatingMap = dskOpenApiUtil.requestBody("/operate/operate/enterprise/bondCreditRatingBatch", bondCreditRatingBatchMap);
Integer
codeRating
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
//
Integer codeRating = MapUtils.getInteger(bondCreditRatingMap, "code", 300);
ArrayList
<
Map
<
String
,
Object
>>
objArrayList
=
new
ArrayList
(
1
);
//
ArrayList<Map<String, Object>> objArrayList = new ArrayList(1);
if
(
codeRating
.
equals
(
HttpStatus
.
OK
.
value
()))
{
//
if (codeRating.equals(HttpStatus.OK.value())) {
Object
object
=
bondCreditRatingMap
.
get
(
"data"
);
//
Object object = bondCreditRatingMap.get("data");
if
(
ObjectUtil
.
isNotEmpty
(
object
))
{
//
if (ObjectUtil.isNotEmpty(object)) {
objArrayList
=
(
ArrayList
)
object
;
//
objArrayList = (ArrayList)object;
}
//
}
}
//
}
//按照城投企业id合并两个list
//按照城投企业id合并两个list
//按照城投企业id合并两个list
//按照城投企业id合并两个list
...
@@ -86,27 +86,27 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
...
@@ -86,27 +86,27 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
companyName
=
companyName
.
replaceAll
(
"</font>"
,
""
);
companyName
=
companyName
.
replaceAll
(
"</font>"
,
""
);
}
}
companyMap
.
put
(
"claimStatus"
,
null
);
companyMap
.
put
(
"claimStatus"
,
null
);
companyMap
.
put
(
"bratingSubjectLevel"
,
null
);
//
companyMap.put("bratingSubjectLevel", null);
for
(
CustomerStatusListVo
vo
:
customerStatusListVos
)
{
for
(
CustomerStatusListVo
vo
:
customerStatusListVos
)
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
if
(
companyName
.
equals
(
vo
.
getCompanyName
()))
{
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
());
companyMap
.
put
(
"claimStatus"
,
vo
.
getStatus
());
}
}
}
}
// 去除重复的数据
// 去除重复的数据
Set
<
UrbanInvestmentPlatformSubjectLevelDto
>
subjectLevelDtoSet
=
new
HashSet
<>();
//
Set<UrbanInvestmentPlatformSubjectLevelDto> subjectLevelDtoSet = new HashSet<>();
for
(
Map
<
String
,
Object
>
m
:
objArrayList
)
{
//
for (Map<String, Object> m : objArrayList) {
UrbanInvestmentPlatformSubjectLevelDto
dto
=
new
UrbanInvestmentPlatformSubjectLevelDto
();
//
UrbanInvestmentPlatformSubjectLevelDto dto = new UrbanInvestmentPlatformSubjectLevelDto();
Long
companyIdCredit
=
MapUtils
.
getLong
(
m
,
"companyId"
,
0L
);
//
Long companyIdCredit = MapUtils.getLong(m, "companyId", 0L);
String
rate
=
MapUtils
.
getString
(
m
,
"bratingSubjectLevel"
);
//
String rate = MapUtils.getString(m, "bratingSubjectLevel");
dto
.
setCompanyId
(
companyIdCredit
);
//
dto.setCompanyId(companyIdCredit);
dto
.
setBratingSubjectLevel
(
rate
);
//
dto.setBratingSubjectLevel(rate);
subjectLevelDtoSet
.
add
(
dto
);
//
subjectLevelDtoSet.add(dto);
}
//
}
for
(
UrbanInvestmentPlatformSubjectLevelDto
dto
:
subjectLevelDtoSet
)
{
//
for (UrbanInvestmentPlatformSubjectLevelDto dto : subjectLevelDtoSet) {
if
(
dto
.
getCompanyId
().
equals
(
companyId
))
{
//
if (dto.getCompanyId().equals(companyId)) {
companyMap
.
put
(
"bratingSubjectLevel"
,
dto
.
getBratingSubjectLevel
());
//
companyMap.put("bratingSubjectLevel", dto.getBratingSubjectLevel());
}
//
}
}
//
}
}
}
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
}
...
...
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