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
44728780
Commit
44728780
authored
Feb 02, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql
parent
3e043139
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
StaffMapper.xml
...manage3-service/src/main/resources/mapper/StaffMapper.xml
+6
-3
No files found.
haoban-manage3-service/src/main/resources/mapper/StaffMapper.xml
View file @
44728780
...
...
@@ -293,7 +293,10 @@
<if
test=
"departmentIds != null and departmentIds.size() > 0"
>
left join tab_haoban_staff_department_related b on a.staff_id = b.staff_id and b.status_flag = 1
</if>
where a.status_flag = 1 and a.wx_enterprise_id = #{wxEnterpriseId}
where a.wx_enterprise_id = #{wxEnterpriseId}
<if
test=
"occupy == null or 1!=occupy"
>
a.status_flag = 1
</if>
<if
test=
"keyword != null and keyword != ''"
>
and (a.staff_name like CONCAT('%',#{keyword},'%') or a.phone_number like CONCAT('%',#{keyword},'%'))
</if>
...
...
@@ -315,11 +318,11 @@
<!-- 其他占用 -->
<if
test=
"occupy != null and 1==occupy"
>
and a.status_flag =
1
and a.update_time >= DATE_FORMAT(NOW(),'%Y-%m-%d') and a.active_status = 1
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() )
and ( a.
active_status
= 0 or a.expire_time
<![CDATA[<]]>
now() )
</if>
<!-- 许可状态 0 未激活,1 正常有效,2 即将过期,3 已过期,可多传,按‘,’隔开 -->
<if
test=
"null != permitState and '' != permitState"
>
...
...
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