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
dbe461df
Commit
dbe461df
authored
Mar 01, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善工时统计
parent
baab8e10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
WorkTimeOrderMapper.xml
...-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
+1
-2
StatisticsServiceImpl.java
...java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
+5
-3
No files found.
wisenergy-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
View file @
dbe461df
...
@@ -75,7 +75,6 @@
...
@@ -75,7 +75,6 @@
<if
test=
"type != null"
>
and type = #{type}
</if>
<if
test=
"type != null"
>
and type = #{type}
</if>
<if
test=
"isOvertime != null"
>
and is_overtime = #{isOvertime}
</if>
<if
test=
"isOvertime != null"
>
and is_overtime = #{isOvertime}
</if>
<if
test=
"createTime != null"
>
and create_time
>
= #{createTime}
</if>
<if
test=
"createTime != null"
>
and create_time
>
= #{createTime}
</if>
<if
test=
"modifyTime != null"
>
and #{modifyTime}
>
= modify_time
</if>
<if
test=
"rejectTime !=null"
>
and reject_time = #{rejectTime}
</if>
<if
test=
"rejectTime !=null"
>
and reject_time = #{rejectTime}
</if>
</sql>
</sql>
...
@@ -213,7 +212,7 @@
...
@@ -213,7 +212,7 @@
<if
test=
"startDay != null"
>
<if
test=
"startDay != null"
>
AND modify_time>=#{startModifyTime}
AND modify_time>=#{startModifyTime}
</if>
</if>
<if
test=
""
>
<if
test=
"
startWorkTime != null
"
>
AND work_day>=#{startWorkTime}
AND work_day>=#{startWorkTime}
</if>
</if>
<if
test=
"projectIdList != null"
>
<if
test=
"projectIdList != null"
>
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
View file @
dbe461df
...
@@ -149,7 +149,7 @@ public class StatisticsServiceImpl implements StatisticsService {
...
@@ -149,7 +149,7 @@ public class StatisticsServiceImpl implements StatisticsService {
List
<
Integer
>
role
=
UserRoleLevelUtils
.
getRole
(
userId
);
List
<
Integer
>
role
=
UserRoleLevelUtils
.
getRole
(
userId
);
List
<
Integer
>
list
=
UserRoleLevelUtils
.
getlevelIds
(
role
);
List
<
Integer
>
list
=
UserRoleLevelUtils
.
getlevelIds
(
role
);
List
<
WorkLevel
>
workLevels
=
UserRoleLevelUtils
.
getlevelByIds
(
list
);
List
<
WorkLevel
>
workLevels
=
UserRoleLevelUtils
.
getlevelByIds
(
list
);
List
<
Integer
>
rank
=
this
.
getUserRank
(
workLevels
,
LevelEnum
.
EXAMINE
.
getLevelName
());
// 本月第一天
// 本月第一天
Date
firstDayOfMonth
=
DateUtil
.
getCurrentFirstDayOfMonth
();
Date
firstDayOfMonth
=
DateUtil
.
getCurrentFirstDayOfMonth
();
// 返回数据对象
// 返回数据对象
...
@@ -184,10 +184,12 @@ public class StatisticsServiceImpl implements StatisticsService {
...
@@ -184,10 +184,12 @@ public class StatisticsServiceImpl implements StatisticsService {
// 项目和商机的未审批的数
// 项目和商机的未审批的数
notCompletedCount1
=
workTimeOrderMapper
.
getCountByCondition
(
map
);
notCompletedCount1
=
workTimeOrderMapper
.
getCountByCondition
(
map
);
}
}
// 用户在该权限对应的级别
List
<
Integer
>
rank
=
this
.
getUserRank
(
workLevels
,
LevelEnum
.
EXAMINE
.
getLevelName
());
// 查询用户负责审批的除项目合商机的其余类型
// 查询用户负责审批的除项目合商机的其余类型
Integer
notCompletedCount2
=
0
;
Integer
notCompletedCount2
=
0
;
if
(
rank
.
contains
(
LevelRankEnum
.
DEPARTMENT_LEVEL
.
getRank
()))
{
if
(
CollectionUtil
.
isNotEmpty
(
rank
)
&&
rank
.
contains
(
LevelRankEnum
.
DEPARTMENT_LEVEL
.
getRank
()))
{
map
.
remove
(
"projectIdList"
);
map
.
remove
(
"projectIdList"
);
List
<
WorkType
>
allType
=
workTypeMapper
.
getAll
();
List
<
WorkType
>
allType
=
workTypeMapper
.
getAll
();
List
<
Integer
>
type
=
new
ArrayList
<>();
List
<
Integer
>
type
=
new
ArrayList
<>();
...
...
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