Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
ee0f674d
Commit
ee0f674d
authored
Jan 05, 2024
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
Signed-off-by:
Administrator
<
admin@example.com
>
parent
a1e37c8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
EnterpriseService.java
.../src/main/java/com/dsk/jsk/service/EnterpriseService.java
+24
-0
No files found.
dsk-module/dsk-biz-api/src/main/java/com/dsk/jsk/service/EnterpriseService.java
View file @
ee0f674d
...
...
@@ -43,6 +43,9 @@ public class EnterpriseService {
@Autowired
private
ICustomerInfoService
iCustomerInfoService
;
@Autowired
private
CompanyRelationTableV1Service
relationTableV1Service
;
public
R
label
(
EnterpriseInfoLabelBody
body
)
throws
Exception
{
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
if
(
body
.
isVaildCid
())
{
...
...
@@ -137,6 +140,27 @@ public class EnterpriseService {
if
(
code
.
equals
(
HttpStatus
.
OK
.
value
()))
{
statisticMapData
.
put
(
"combineMember"
,
MapUtils
.
getMap
(
combineMemberMap
,
"data"
,
null
));
}
// 咨询业务往来
JskCompanyRelationTableV1Dto
v1Dto
=
new
JskCompanyRelationTableV1Dto
();
Map
<
String
,
Object
>
businessTransactionsMap
=
null
;
v1Dto
.
setCompanyId
(
body
.
getCompanyId
());
v1Dto
.
setCompanyType
(
1
);
TableDataInfo
page1
=
relationTableV1Service
.
page
(
v1Dto
);
long
total1
=
page1
.
getTotal
();
businessTransactionsMap
.
put
(
"owner"
,
total1
);
v1Dto
.
setCompanyType
(
2
);
TableDataInfo
page2
=
relationTableV1Service
.
page
(
v1Dto
);
long
total2
=
page2
.
getTotal
();
businessTransactionsMap
.
put
(
"construction"
,
total2
);
v1Dto
.
setCompanyType
(
3
);
TableDataInfo
page3
=
relationTableV1Service
.
page
(
v1Dto
);
long
total3
=
page3
.
getTotal
();
businessTransactionsMap
.
put
(
"combine"
,
total3
);
if
(
total1
+
total2
+
total3
>
0
)
{
statisticMapData
.
put
(
"businessTransactions"
,
businessTransactionsMap
);
}
else
{
statisticMapData
.
put
(
"businessTransactions"
,
null
);
}
return
R
.
ok
(
statisticMapData
);
}
...
...
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