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
8dad775c
Commit
8dad775c
authored
Feb 25, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善工时统计
parent
574572f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
WorkProjectTimeCost.xml
...-mapper/src/main/resources/mapper/WorkProjectTimeCost.xml
+2
-7
StatisticsServiceImpl.java
...java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
+1
-1
No files found.
wisenergy-mapper/src/main/resources/mapper/WorkProjectTimeCost.xml
View file @
8dad775c
...
@@ -94,14 +94,9 @@
...
@@ -94,14 +94,9 @@
</foreach>
</foreach>
</if>
</if>
<if
test=
"deptId != null"
>
<if
test=
"deptId != null"
>
AND dept_id = #{deptId}
AND ptc.dept_id = #{deptId}
</if>
<if
test=
"types != null"
>
AND type in
<foreach
collection=
"types"
open=
"("
close=
")"
separator=
","
item=
"type"
>
#{type}
</foreach>
</if>
</if>
<if
test=
"centreId != null"
>
<if
test=
"centreId != null"
>
AND centre_id = #{centreId}
AND centre_id = #{centreId}
</if>
</if>
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
View file @
8dad775c
...
@@ -306,8 +306,8 @@ public class StatisticsServiceImpl implements StatisticsService {
...
@@ -306,8 +306,8 @@ public class StatisticsServiceImpl implements StatisticsService {
WorkDept
userDept
=
workDeptMapper
.
getById
(
user
.
getDeptId
());
WorkDept
userDept
=
workDeptMapper
.
getById
(
user
.
getDeptId
());
// 获取中心下的所有项目和商机工单统计
// 获取中心下的所有项目和商机工单统计
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"centreId"
,
userDept
.
getCentreId
());
map
.
put
(
"firstDayOfMonth"
,
startTime
);
map
.
put
(
"firstDayOfMonth"
,
startTime
);
map
.
put
(
"centreId"
,
userDept
.
getCentreId
());
workTimeAndCostCollects
=
workProjectTimeCostMapper
.
selectList
(
map
);
workTimeAndCostCollects
=
workProjectTimeCostMapper
.
selectList
(
map
);
// 除项目和项目的类型
// 除项目和项目的类型
...
...
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