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
baab8e10
Commit
baab8e10
authored
Mar 01, 2021
by
nie'hong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善工时统计
parent
a69fbf33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
WorkTimeOrderMapper.xml
...-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
+6
-6
No files found.
wisenergy-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
View file @
baab8e10
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
AND modify_time>=#{startModifyTime}
AND modify_time>=#{startModifyTime}
</if>
</if>
<if
test=
""
>
<if
test=
""
>
AND work_day>={startWorkTime}
AND work_day>=
#
{startWorkTime}
</if>
</if>
<if
test=
"projectIdList != null"
>
<if
test=
"projectIdList != null"
>
AND project_id IN
AND project_id IN
...
@@ -345,19 +345,19 @@
...
@@ -345,19 +345,19 @@
where
where
(t.work_day
<
= #{endDate} or t.work_day is null) AND (t.status IN (2, 5) or t.status is null)
(t.work_day
<
= #{endDate} or t.work_day is null) AND (t.status IN (2, 5) or t.status is null)
<if
test=
"startDate != null"
>
<if
test=
"startDate != null"
>
AND
(t.work_day > #{startDate} or t.work_day is null)
AND (t.work_day > #{startDate} or t.work_day is null)
</if>
</if>
AND ty.id in
AND ty.id in
<foreach
collection=
"queryType"
item=
"type"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"queryType"
item=
"type"
open=
"("
close=
")"
separator=
","
>
#{type}
#{type}
</foreach>
</foreach>
AND (
<if
test=
"userIds.size != 0"
>
t.user_id in
<if
test=
"userIds.size != 0"
>
AND ( t.user_id in
<foreach
collection=
"userIds"
item=
"userId"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"userIds"
item=
"userId"
open=
"("
close=
")"
separator=
","
>
#{userId}
#{userId}
</foreach>
</foreach>
OR
OR t.user_id is null)
</if>
</if>
t.user_id is null)
GROUP BY
<if
test=
"isAll"
>
u.id,u.`name`,
</if>
ty.id,ty.name, t.is_overtime
GROUP BY
<if
test=
"isAll"
>
u.id,u.`name`,
</if>
ty.id,ty.name, t.is_overtime
</select>
</select>
</mapper>
</mapper>
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