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
16b23021
Commit
16b23021
authored
Jun 28, 2023
by
zhangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9501dff7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
11 deletions
+15
-11
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+15
-11
No files found.
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
16b23021
...
@@ -52,9 +52,11 @@ public class EnterpriseService {
...
@@ -52,9 +52,11 @@ public class EnterpriseService {
Map
<
String
,
Object
>
companyMap
=
dskOpenApiUtil
.
requestBody
(
"/api/jsk/enterprise/infoHeader"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
Map
<
String
,
Object
>
companyMap
=
dskOpenApiUtil
.
requestBody
(
"/api/jsk/enterprise/infoHeader"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
Integer
companyCode
=
MapUtils
.
getInteger
(
companyMap
,
"code"
,
300
);
Integer
companyCode
=
MapUtils
.
getInteger
(
companyMap
,
"code"
,
300
);
if
(
200
!=
companyCode
)
return
R
.
ok
();
if
(
200
!=
companyCode
)
return
R
.
ok
();
Map
companyData
=
MapUtils
.
getMap
(
companyMap
,
"data"
,
null
);
Map
companyData
=
MapUtils
.
getMap
(
companyMap
,
"data"
,
null
);
companyData
.
put
(
"claimStatus"
,
0
);
companyData
.
put
(
"uipId"
,
null
);
companyData
.
put
(
"uipId"
,
null
);
companyData
.
put
(
"claimStatus"
,
0
);
companyData
.
put
(
"bratingSubjectLevel"
,
null
);
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
body
,
false
,
false
);
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
body
,
false
,
false
);
map
.
put
(
"cid"
,
body
.
getCompanyId
());
map
.
put
(
"cid"
,
body
.
getCompanyId
());
...
@@ -65,19 +67,21 @@ public class EnterpriseService {
...
@@ -65,19 +67,21 @@ public class EnterpriseService {
Map
uipData
=
MapUtils
.
getMap
(
uipMap
,
"data"
,
new
HashMap
<>());
Map
uipData
=
MapUtils
.
getMap
(
uipMap
,
"data"
,
new
HashMap
<>());
String
uipId
=
MapUtils
.
getString
(
uipData
,
"uipId"
,
null
);
String
uipId
=
MapUtils
.
getString
(
uipData
,
"uipId"
,
null
);
companyData
.
put
(
"uipId"
,
uipId
);
if
(
ObjectUtil
.
isEmpty
(
uipId
))
{
if
(!
ObjectUtil
.
isEmpty
(
uipId
))
{
return
R
.
ok
(
companyData
);
ArrayList
<
String
>
uipIds
=
new
ArrayList
<>();
uipIds
.
add
(
uipId
);
companyData
.
put
(
"claimStatus"
,
CollectionUtils
.
isEmpty
(
iCustomerService
.
selectStatusList
(
uipIds
))
?
0
:
1
);
}
}
companyData
.
put
(
"uipId"
,
uipId
);
Map
<
String
,
Object
>
bondCreditRatingMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterprise/bondCreditRating"
,
map
);
ArrayList
<
String
>
uipIds
=
new
ArrayList
<>();
Integer
bondCreditRatingCode
=
MapUtils
.
getInteger
(
bondCreditRatingMap
,
"code"
,
300
);
uipIds
.
add
(
uipId
);
if
(
200
!=
bondCreditRatingCode
)
return
R
.
ok
(
companyData
);
List
<
CustomerStatusListVo
>
claimStatusList
=
iCustomerService
.
selectStatusList
(
uipIds
);
if
(
CollectionUtils
.
isNotEmpty
(
claimStatusList
))
{
List
<
Map
<
String
,
Object
>>
bondCreditRatingList
=
(
List
<
Map
<
String
,
Object
>>)
MapUtils
.
getObject
(
bondCreditRatingMap
,
"data"
,
new
ArrayList
<>());
companyData
.
put
(
"claimStatus"
,
1
);
if
(
CollectionUtils
.
isEmpty
(
bondCreditRatingList
))
return
R
.
ok
(
companyData
);
}
companyData
.
put
(
"bratingSubjectLevel"
,
MapUtils
.
getString
(
bondCreditRatingList
.
get
(
0
),
"bratingSubjectLevel"
,
null
));
return
R
.
ok
(
companyData
);
return
R
.
ok
(
companyData
);
}
}
...
...
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