Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
6654f034
Commit
6654f034
authored
Feb 02, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
激活码查询
parent
70f108dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+27
-0
No files found.
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
6654f034
...
...
@@ -312,6 +312,33 @@
#{id,jdbcType=VARCHAR}
</foreach>
</if>
<!-- 其他占用 -->
<if
test=
"occupy != null and 1==occupy"
>
and a.status_flag = 0 and a.update_time >= DATE_FORMAT(NOW(),'%Y-%m-%d') and a.active_status = 1
</if>
<!-- -->
<if
test=
"occupy != null and 2==occupy"
>
and ( a.status_flag = 0 or a.expire_time
<![CDATA[<]]>
now() )
</if>
<!-- 许可状态 0 未激活,1 正常有效,2 即将过期,3 已过期,可多传,按‘,’隔开 -->
<if
test=
"null != permitState"
>
<if
test=
"permitState==0"
>
and a.active_status = 0
</if>
<if
test=
"permitState==1"
>
and a.active_status = 1 and a.expire_time > now()
</if>
<if
test=
"permitState==2"
>
and a.active_status = 1 and a.expire_time > now() and a.expire_time
<![CDATA[<=]]>
DATE_ADD(DATE_FORMAT(NOW(),'%Y-%m-%d'),INTERVAL 30 DAY)
</if>
<if
test=
"permitState==3"
>
and a.active_status = 1 and a.expire_time
<![CDATA[<]]>
now()
</if>
</if>
<if
test=
"departmentIds != null and departmentIds.size() > 0"
>
and b.department_id IN
<foreach
collection=
"departmentIds"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
...
...
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