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
a16c7bb3
Commit
a16c7bb3
authored
Mar 13, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善工时统计
parent
147cadae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
WorkTimeOrderMapper.xml
...-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
+1
-1
StatisticsServiceImpl.java
...java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
+4
-0
No files found.
wisenergy-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
View file @
a16c7bb3
...
...
@@ -202,7 +202,7 @@
from work_time_order t join work_type ty on t.type = ty.id
where user_id = #{userId} AND work_day >= #{currentMonthFirstDay} AND t.status != 3
group by type
order by fi
le
d(ty.id, 1, 2, 5, 6, 7, 3, 4)
order by fi
el
d(ty.id, 1, 2, 5, 6, 7, 3, 4)
</select>
<select
id=
"listByDateAndUserId"
resultMap=
"dayWorkTimeAndType"
>
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
View file @
a16c7bb3
...
...
@@ -923,6 +923,10 @@ public class StatisticsServiceImpl implements StatisticsService {
log
.
info
(
"StatisticsServiceImpl[]exportProjectStatistics[]param{}"
+
userId
+
year
+
projectIds
);
// 将项目主键解析出来
List
<
Integer
>
projectIdList
=
Arrays
.
asList
(
projectIds
.
split
(
","
)).
stream
().
map
(
s
->
Integer
.
parseInt
(
s
.
trim
())).
collect
(
Collectors
.
toList
());
// year为空,为今年
if
(
year
==
null
)
{
year
=
DateUtil
.
getYear
(
new
Date
());
}
// 查询条件
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"year"
,
year
);
...
...
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