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
383d6452
Commit
383d6452
authored
Mar 08, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善工时统计
parent
8c13667a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
WorkTimeOrderMapper.xml
...-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
+1
-1
StatisticsServiceImpl.java
...java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
+2
-2
No files found.
wisenergy-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
View file @
383d6452
...
...
@@ -211,7 +211,7 @@
<if
test=
"startModifyTime != null"
>
AND modify_time>=#{startModifyTime}
</if>
<if
test=
"startWork
Time
!= null"
>
<if
test=
"startWork
Day
!= null"
>
AND work_day>=#{startWorkTime}
</if>
<if
test=
"projectIdList != null"
>
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
View file @
383d6452
...
...
@@ -176,7 +176,7 @@ public class StatisticsServiceImpl implements StatisticsService {
statusArray
.
add
(
WorkOrderStatus
.
WAIT_AUDIT
.
getCode
());
statusArray
.
add
(
WorkOrderStatus
.
RE_SUBMIT
.
getCode
());
//本月未审批数量查询
map
.
put
(
"startWork
Time
"
,
firstDayOfMonth
);
map
.
put
(
"startWork
Day
"
,
firstDayOfMonth
);
map
.
put
(
"statusArray"
,
statusArray
);
// 查询用户负责的项目和商机id
...
...
@@ -225,7 +225,7 @@ public class StatisticsServiceImpl implements StatisticsService {
map
.
clear
();
map
.
put
(
"status"
,
StatusEnum
.
REJECTED
.
getCode
());
map
.
put
(
"userId"
,
userId
);
map
.
put
(
"startWork
Time
"
,
firstDayOfMonth
);
map
.
put
(
"startWork
Day
"
,
firstDayOfMonth
);
Integer
countByCondition
=
workTimeOrderMapper
.
getCountByCondition
(
map
);
List
<
MonthlyWorkingHoursStatistics
>
monthlyWorkingHoursStatistics
=
workTimeOrderMapper
.
statisticsByProjectType
(
userId
,
firstDayOfMonth
);
...
...
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