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
16c24fc2
Commit
16c24fc2
authored
Feb 25, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善工时统计
parent
6e20d889
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
StatisticsServiceImpl.java
...java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
+3
-2
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
View file @
16c24fc2
...
...
@@ -625,8 +625,6 @@ public class StatisticsServiceImpl implements StatisticsService {
if
(
CollectionUtil
.
isEmpty
(
projectStatisticsByMonths
))
{
return
null
;
}
// 部门主键不为空时,日期格式只有某月。为空时,日期格式为某年统计的第一个月为某年某月,其余为某月
this
.
conversionDateFormat
(
projectStatisticsByMonths
,
deptId
);
List
<
ProjectStatisticsByMonth
>
projectStatisticsByMonths1
=
workProjectTimeCostMapper
.
selectListStatistics
(
year
,
deptId
,
projectId
);
// 将查询结果封装在一起,部门主键为空,项目总计在前,否则在后
List
<
ProjectStatisticsByMonth
>
projectStatistics
=
new
ArrayList
<>();
...
...
@@ -638,6 +636,9 @@ public class StatisticsServiceImpl implements StatisticsService {
projectStatistics
.
addAll
(
projectStatisticsByMonths
);
}
// 部门主键不为空时,日期格式只有某月。为空时,日期格式为某年统计的第一个月为某年某月,其余为某月
this
.
conversionDateFormat
(
projectStatistics
,
deptId
);
// 计算项目工时和成本合计
for
(
ProjectStatisticsByMonth
projectStatisticsByMonth
:
projectStatisticsByMonths1
)
{
// 一条统计的
...
...
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