Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
6dbf88b9
Commit
6dbf88b9
authored
Jan 16, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化修改
parent
12a9c38a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
TVacationInfoMapper.xml
...ess-biz/src/main/resources/mapper/TVacationInfoMapper.xml
+18
-3
No files found.
yifu-business/yifu-business-biz/src/main/resources/mapper/TVacationInfoMapper.xml
View file @
6dbf88b9
...
...
@@ -75,9 +75,24 @@
a.VACATION_END_TIME between #{query.vacationStartTime} and #{query.vacationEndTime}
)
</if>
<if
test=
"query.vacationStatus != null and query.vacationStatus.trim() != ''"
>
and a.VACATION_STATUS = #{query.vacationStatus}
</if>
<if
test=
"query.vacationStatus != null and query.vacationStatus.trim() != ''"
>
<!-- 待休 -->
<if
test=
"query.vacationStatus == '0'.toString()"
>
and now()
<![CDATA[<]]>
a.VACATION_START_TIME and a.VACATION_STATUS = '4'
</if>
<!-- 休假中 -->
<if
test=
"query.vacationStatus == '1'.toString()"
>
and now()
<![CDATA[>=]]>
a.VACATION_START_TIME and now()
<![CDATA[<=]]>
a.VACATION_END_TIME and a.VACATION_STATUS = '4'
</if>
<!-- 到期待销假 -->
<if
test=
"query.vacationStatus == '2'.toString()"
>
and now()
<![CDATA[>]]>
a.VACATION_END_TIME and a.VACATION_STATUS = '4'
</if>
<!-- 已销假 -->
<if
test=
"query.vacationStatus == '3'.toString()"
>
and a.VACATION_STATUS
<![CDATA[<>]]>
'4'
</if>
</if>
</sql>
<select
id=
"getListByPage"
resultMap=
"TVacationInfoVO"
>
...
...
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