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
51e5292c
Commit
51e5292c
authored
Jul 31, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
parent
0312dfb9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
7 deletions
+56
-7
UrbanInvestmentPlatformSubjectLevelDto.java
...k/common/dtos/UrbanInvestmentPlatformSubjectLevelDto.java
+43
-0
UrbanInvestmentPlatformServiceImpl.java
...stem/service/impl/UrbanInvestmentPlatformServiceImpl.java
+13
-7
No files found.
dsk-common/src/main/java/com/dsk/common/dtos/UrbanInvestmentPlatformSubjectLevelDto.java
0 → 100644
View file @
51e5292c
package
com
.
dsk
.
common
.
dtos
;
import
lombok.Data
;
import
java.util.Objects
;
/**
* @ClassName UrbanInvestmentPlatformSubjectLevelDto
* @Description 信用评级
* @Author Dgm
* @Date 2023/5/23 14:05
* @Version
*/
@Data
public
class
UrbanInvestmentPlatformSubjectLevelDto
{
/**
* 企业Id
*/
private
Long
companyId
;
/**
* 主体评级
*/
private
String
bratingSubjectLevel
;
@Override
public
boolean
equals
(
Object
o
)
{
if
(
this
==
o
)
{
return
true
;
}
if
(
o
==
null
||
getClass
()
!=
o
.
getClass
())
{
return
false
;
}
UrbanInvestmentPlatformSubjectLevelDto
that
=
(
UrbanInvestmentPlatformSubjectLevelDto
)
o
;
return
Objects
.
equals
(
companyId
,
that
.
companyId
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
companyId
);
}
}
dsk-system/src/main/java/com/dsk/system/service/impl/UrbanInvestmentPlatformServiceImpl.java
View file @
51e5292c
...
@@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
...
@@ -5,6 +5,7 @@ import cn.hutool.core.util.ObjectUtil;
import
com.dsk.acc.openapi.client.util.CommonUtils
;
import
com.dsk.acc.openapi.client.util.CommonUtils
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.dtos.UrbanInvestmentPlatformDto
;
import
com.dsk.common.dtos.UrbanInvestmentPlatformDto
;
import
com.dsk.common.dtos.UrbanInvestmentPlatformSubjectLevelDto
;
import
com.dsk.common.utils.DskOpenApiUtil
;
import
com.dsk.common.utils.DskOpenApiUtil
;
import
com.dsk.system.domain.customer.vo.CustomerStatusListVo
;
import
com.dsk.system.domain.customer.vo.CustomerStatusListVo
;
import
com.dsk.system.service.ICustomerService
;
import
com.dsk.system.service.ICustomerService
;
...
@@ -15,10 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -15,10 +16,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.http.HttpStatus
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.*
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
* @ClassName EconomicServiceImpl
* @ClassName EconomicServiceImpl
...
@@ -94,11 +92,19 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
...
@@ -94,11 +92,19 @@ public class UrbanInvestmentPlatformServiceImpl implements UrbanInvestmentPlatfo
companyMap
.
put
(
"claimStatus"
,
1
);
companyMap
.
put
(
"claimStatus"
,
1
);
}
}
}
}
// 去除重复的数据
Set
<
UrbanInvestmentPlatformSubjectLevelDto
>
subjectLevelDtoSet
=
new
HashSet
<>();
for
(
Map
<
String
,
Object
>
m
:
objArrayList
)
{
for
(
Map
<
String
,
Object
>
m
:
objArrayList
)
{
UrbanInvestmentPlatformSubjectLevelDto
dto
=
new
UrbanInvestmentPlatformSubjectLevelDto
();
Long
companyIdCredit
=
MapUtils
.
getLong
(
m
,
"companyId"
,
0L
);
Long
companyIdCredit
=
MapUtils
.
getLong
(
m
,
"companyId"
,
0L
);
if
(
companyIdCredit
.
equals
(
companyId
))
{
String
rate
=
MapUtils
.
getString
(
m
,
"bratingSubjectLevel"
);
companyMap
.
put
(
"bratingSubjectLevel"
,
m
.
get
(
"bratingSubjectLevel"
));
dto
.
setCompanyId
(
companyIdCredit
);
dto
.
setBratingSubjectLevel
(
rate
);
subjectLevelDtoSet
.
add
(
dto
);
}
for
(
UrbanInvestmentPlatformSubjectLevelDto
dto
:
subjectLevelDtoSet
)
{
if
(
dto
.
getCompanyId
().
equals
(
companyId
))
{
companyMap
.
put
(
"bratingSubjectLevel"
,
dto
.
getBratingSubjectLevel
());
}
}
}
}
}
}
...
...
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