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
3f0f3c1f
Commit
3f0f3c1f
authored
Mar 17, 2021
by
cq990612
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码结构
parent
668c01a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
WorkTimeOrderMapper.xml
...-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
+8
-1
No files found.
wisenergy-mapper/src/main/resources/mapper/WorkTimeOrderMapper.xml
View file @
3f0f3c1f
...
@@ -434,13 +434,20 @@
...
@@ -434,13 +434,20 @@
<if
test=
" startDate !=null and endDate !=null"
>
<if
test=
" startDate !=null and endDate !=null"
>
and c.work_day between #{startDate} and #{endDate}
and c.work_day between #{startDate} and #{endDate}
</if>
</if>
) or (c.work_day is null and u.submit_order = 1 and u.`status` = 1)
<if
test=
"depts !=null and depts.size()>0"
>
<if
test=
"depts !=null and depts.size()>0"
>
AND d.id in
AND d.id in
<foreach
collection=
"depts"
item=
"dept"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"depts"
item=
"dept"
open=
"("
close=
")"
separator=
","
>
#{dept}
#{dept}
</foreach>
</foreach>
</if>
</if>
) or (c.work_day is null and u.submit_order = 1 and u.`status` = 1
<if
test=
"depts !=null and depts.size()>0"
>
AND d.id in
<foreach
collection=
"depts"
item=
"dept"
open=
"("
close=
")"
separator=
","
>
#{dept}
</foreach>
</if>
)
</where>
</where>
ORDER BY CONVERT( u.name USING gbk )
ORDER BY CONVERT( u.name USING gbk )
...
...
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