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
c3b004fb
Commit
c3b004fb
authored
Jun 26, 2023
by
zhangyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
e1c88436
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
2 deletions
+27
-2
EnterpriseService.java
...ain/java/com/dsk/system/dskService/EnterpriseService.java
+27
-2
No files found.
dsk-system/src/main/java/com/dsk/system/dskService/EnterpriseService.java
View file @
c3b004fb
...
...
@@ -83,8 +83,33 @@ public class EnterpriseService {
}
public
R
statistic
(
EnterpriseStatisticBody
body
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/api/jsk/enterprise/statistic"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
return
BeanUtil
.
toBean
(
map
,
R
.
class
);
Map
<
String
,
Object
>
statisticMap
=
dskOpenApiUtil
.
requestBody
(
"/api/jsk/enterprise/statistic"
,
BeanUtil
.
beanToMap
(
body
,
false
,
false
));
Integer
statisticMapCode
=
MapUtils
.
getInteger
(
statisticMap
,
"code"
,
300
);
if
(
200
!=
statisticMapCode
)
throw
new
RuntimeException
();
Map
statisticMapData
=
MapUtils
.
getMap
(
statisticMap
,
"data"
,
null
);
if
(
MapUtils
.
isEmpty
(
statisticMapData
))
return
R
.
ok
();
Map
performance
=
MapUtils
.
getMap
(
statisticMapData
,
"performance"
);
Map
business
=
MapUtils
.
getMap
(
statisticMapData
,
"business"
);
HashMap
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"cid"
,
body
.
getCompanyId
());
Map
<
String
,
Object
>
projectStatisticMap
=
dskOpenApiUtil
.
requestBody
(
"/operate/enterpriseProject/statistic"
,
paramMap
);
Integer
projectStatisticMapCode
=
MapUtils
.
getInteger
(
projectStatisticMap
,
"code"
,
300
);
if
(
200
!=
projectStatisticMapCode
)
return
R
.
ok
(
statisticMapData
);
Map
projectStatisticMapData
=
MapUtils
.
getMap
(
projectStatisticMap
,
"data"
,
null
);
performance
.
put
(
"specialDebt"
,
MapUtils
.
getInteger
(
projectStatisticMapData
,
"specialDebt"
,
0
));
performance
.
put
(
"bidPlan"
,
MapUtils
.
getInteger
(
projectStatisticMapData
,
"bidPlan"
,
0
));
business
.
put
(
"historySend"
,
MapUtils
.
getInteger
(
projectStatisticMapData
,
"historySend"
,
0
));
statisticMapData
.
put
(
"performance"
,
performance
);
statisticMapData
.
put
(
"business"
,
business
);
return
R
.
ok
(
statisticMapData
);
}
public
R
bidDataGroup
(
EnterpriseBidDataGroupBody
body
)
throws
Exception
{
...
...
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