Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
work_service
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
licc
work_service
Commits
afe76212
Commit
afe76212
authored
Mar 03, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善项目统计报表
parent
71f94f92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
StatisticsServiceImpl.java
...java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
+4
-6
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
View file @
afe76212
...
...
@@ -158,18 +158,17 @@ public class StatisticsServiceImpl implements StatisticsService {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
// 用户有审批权限
if
(
CollectionUtil
.
isNotEmpty
(
userAuthority
)
&&
userAuthority
.
contains
(
LevelEnum
.
EXAMINE
.
getLevelName
()))
{
//以审批人、审核状态、开始时间查询本月审批数量
//
以审批人、审核状态、开始时间查询本月审批数量
map
.
put
(
"reviewerId"
,
userId
);
map
.
put
(
"startModifyTime"
,
firstDayOfMonth
);
Integer
completedCount
=
workTimeOrderMapper
.
getCountByCondition
(
map
);
//本月驳回未重报数量
// 本月驳回未重报数量
map
.
put
(
"status"
,
WorkOrderStatus
.
TURN_DOWN
.
getCode
());
Integer
rejectAndNotResubmit
=
workTimeOrderMapper
.
getCountByCondition
(
map
);
// 移除查询审批人和状态条件
map
.
remove
(
"reviewerId"
);
map
.
remove
(
"status"
);
//待审核包括:新提交和重新提交的
List
<
Integer
>
statusArray
=
new
ArrayList
<>();
statusArray
.
add
(
WorkOrderStatus
.
WAIT_AUDIT
.
getCode
());
...
...
@@ -668,7 +667,7 @@ public class StatisticsServiceImpl implements StatisticsService {
this
.
conversionDateFormat
(
projectStatistics
,
deptId
);
// 计算项目工时和成本合计
for
(
ProjectStatisticsByMonth
projectStatisticsByMonth
:
projectStatistics
ByMonths1
)
{
for
(
ProjectStatisticsByMonth
projectStatisticsByMonth
:
projectStatistics
)
{
// 一条统计的
List
<
ProjectStatisticsByMonth
.
StatisticsDateAndWorkTime
>
statisticsDateAndWorkTimes
=
projectStatisticsByMonth
.
getStatisticsDateAndWorkTimes
();
// 项目合计对象
...
...
@@ -686,7 +685,6 @@ public class StatisticsServiceImpl implements StatisticsService {
statisticsDateAndWorkTime1
.
setCost
(
cost
);
statisticsDateAndWorkTimes
.
add
(
statisticsDateAndWorkTime1
);
}
return
projectStatistics
;
}
...
...
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