Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
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
3f97e249
Commit
3f97e249
authored
4 years ago
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善工时统计
parent
7c183d72
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
41 deletions
+54
-41
WorkProjectMapper.java
.../src/main/java/cn/wisenergy/mapper/WorkProjectMapper.java
+2
-0
WorkProjectMapper.xml
...gy-mapper/src/main/resources/mapper/WorkProjectMapper.xml
+6
-0
WorkTimeOrderMapper.xml
...-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
+4
-3
LevelEnum.java
...del/src/main/java/cn/wisenergy/model/enums/LevelEnum.java
+2
-1
StatisticsServiceImpl.java
...java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
+40
-37
No files found.
wisenergy-mapper/src/main/java/cn/wisenergy/mapper/WorkProjectMapper.java
View file @
3f97e249
...
@@ -51,4 +51,6 @@ public interface WorkProjectMapper extends BaseMapper<WorkProject> {
...
@@ -51,4 +51,6 @@ public interface WorkProjectMapper extends BaseMapper<WorkProject> {
int
updateProject
(
ModifyProjectVo
modifyProjectVo
);
int
updateProject
(
ModifyProjectVo
modifyProjectVo
);
List
<
WorkProject
>
getListByDeptAndIsConclusion
(
@Param
(
"deptId"
)
Integer
deptId
,
@Param
(
"isConclusion"
)
Integer
isConclusion
);
List
<
WorkProject
>
getListByDeptAndIsConclusion
(
@Param
(
"deptId"
)
Integer
deptId
,
@Param
(
"isConclusion"
)
Integer
isConclusion
);
List
<
Integer
>
getProjectIdByManager
(
Integer
userId
);
}
}
This diff is collapsed.
Click to expand it.
wisenergy-mapper/src/main/resources/mapper/WorkProjectMapper.xml
View file @
3f97e249
...
@@ -168,5 +168,11 @@ ORDER BY p.is_conclusion DESC
...
@@ -168,5 +168,11 @@ ORDER BY p.is_conclusion DESC
<if
test=
"isConclusion !=null "
>
AND is_conclusion=#{isConclusion}
</if>
<if
test=
"isConclusion !=null "
>
AND is_conclusion=#{isConclusion}
</if>
</select>
</select>
<select
id=
"getProjectIdByManager"
resultType=
"java.lang.Integer"
>
select id
from
<include
refid=
"table"
/>
where manager_id = #{userId}
</select>
</mapper>
</mapper>
This diff is collapsed.
Click to expand it.
wisenergy-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
View file @
3f97e249
...
@@ -210,15 +210,16 @@
...
@@ -210,15 +210,16 @@
<if
test=
"startDay != null"
>
<if
test=
"startDay != null"
>
AND work_day>=#{startDay}
AND work_day>=#{startDay}
</if>
</if>
<if
test=
"projectId
s
!= null"
>
<if
test=
"projectId
List
!= null"
>
AND project_id IN
AND project_id IN
<foreach
collection=
"projectId
s
"
item=
"projectId"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"projectId
List
"
item=
"projectId"
open=
"("
close=
")"
separator=
","
>
#{projectId}
#{projectId}
</foreach>
</foreach>
</if>
</if>
<if
test=
"statusArray != null"
>
<if
test=
"statusArray != null"
>
AND `status` IN
AND `status` IN
<foreach
collection=
"statusArray"
item=
"workStatus"
open=
"("
close=
")"
separator=
","
>
#{workStatus}
<foreach
collection=
"statusArray"
item=
"workStatus"
open=
"("
close=
")"
separator=
","
>
#{workStatus}
</foreach>
</foreach>
</if>
</if>
<if
test=
"typeList != null"
>
<if
test=
"typeList != null"
>
...
...
This diff is collapsed.
Click to expand it.
wisenergy-model/src/main/java/cn/wisenergy/model/enums/LevelEnum.java
View file @
3f97e249
...
@@ -6,7 +6,8 @@ package cn.wisenergy.model.enums;
...
@@ -6,7 +6,8 @@ package cn.wisenergy.model.enums;
*/
*/
public
enum
LevelEnum
{
public
enum
LevelEnum
{
EXAMINE
(
"工时审批"
),
EXAMINE
(
"工时审批"
),
STATISTICS
(
"统计"
),
USER_STATISTICS
(
"人员统计报表"
),
PROJECT_STATITSTICS
(
"项目统计报表"
),
PROJECT_MANAGER
(
"项目/商机管理"
),
PROJECT_MANAGER
(
"项目/商机管理"
),
TIMEEXPORT
(
"工时导出"
),
TIMEEXPORT
(
"工时导出"
),
SYSTEMSETTINGS
(
"系统设置"
),
SYSTEMSETTINGS
(
"系统设置"
),
...
...
This diff is collapsed.
Click to expand it.
wisenergy-service/src/main/java/cn/wisenergy/service/impl/StatisticsServiceImpl.java
View file @
3f97e249
This diff is collapsed.
Click to expand it.
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