Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
entrance_api
Project
Project
Details
Activity
Releases
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
王琮
entrance_api
Commits
eecab2bc
Commit
eecab2bc
authored
Nov 25, 2022
by
mx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
a29595b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
SysUserRepositorys.xml
src/main/resources/mapper/SysUserRepositorys.xml
+8
-8
No files found.
src/main/resources/mapper/SysUserRepositorys.xml
View file @
eecab2bc
...
@@ -57,28 +57,28 @@
...
@@ -57,28 +57,28 @@
where
where
su.del_flag = 0
su.del_flag = 0
<if
test=
"entity.userType !=null and entity.userType != '' "
>
<if
test=
"entity.userType !=null and entity.userType != '' "
>
and user_type = #{entity.userType}
and
su.
user_type = #{entity.userType}
</if>
</if>
<if
test=
"entity.name !=null and entity.name != '' "
>
<if
test=
"entity.name !=null and entity.name != '' "
>
and name like concat ("%",#{entity.name},"%")
and
su.
name like concat ("%",#{entity.name},"%")
</if>
</if>
<if
test=
"entity.identity !=null and entity.identity != '' "
>
<if
test=
"entity.identity !=null and entity.identity != '' "
>
and identity = #{entity.identity}
and
su.
identity = #{entity.identity}
</if>
</if>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
<if
test=
"entity.flag !=null and entity.flag != '' "
>
and flag = #{entity.flag}
and
su.
flag = #{entity.flag}
</if>
</if>
<if
test=
"entity.position !=null and entity.position != '' "
>
<if
test=
"entity.position !=null and entity.position != '' "
>
and position in(${entity.position})
and
su.
position in(${entity.position})
</if>
</if>
<if
test=
"entity.blacklistFlag == 1 || entity.blacklistFlag == 0"
>
<if
test=
"entity.blacklistFlag == 1 || entity.blacklistFlag == 0"
>
and blacklist_flag = #{entity.blacklistFlag}
and blacklist_flag = #{entity.blacklistFlag}
</if>
</if>
<if
test=
"entity.deptId !=null and entity.deptId != '' "
>
<if
test=
"entity.deptId !=null and entity.deptId != '' "
>
and dept_id in(${entity.deptId})
and
su.
dept_id in(${entity.deptId})
</if>
</if>
<if
test=
"entity.phone !=null and entity.phone != '' "
>
<if
test=
"entity.phone !=null and entity.phone != '' "
>
and phone like concat ("%",#{entity.phone},"%")
and
su.
phone like concat ("%",#{entity.phone},"%")
</if>
</if>
<if
test=
"entity.beginTime != null and entity.beginTime !='' "
>
<!-- 开始时间检索 -->
<if
test=
"entity.beginTime != null and entity.beginTime !='' "
>
<!-- 开始时间检索 -->
and date_format(su.create_date,'%Y-%m-%d')
>
= date_format(#{entity.beginTime},'%Y-%m-%d')
and date_format(su.create_date,'%Y-%m-%d')
>
= date_format(#{entity.beginTime},'%Y-%m-%d')
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
and date_format(su.create_date,'%Y-%m-%d')
<
= date_format(#{entity.endTime},'%Y-%m-%d')
and date_format(su.create_date,'%Y-%m-%d')
<
= date_format(#{entity.endTime},'%Y-%m-%d')
</if>
</if>
<if
test=
"entity.px == '1'.toString() "
>
<!-- 排序-->
<if
test=
"entity.px == '1'.toString() "
>
<!-- 排序-->
order BY create_date desc
order BY
su.
create_date desc
</if>
</if>
<if
test=
"entity.px == '2'.toString() "
>
<!-- 排序-->
<if
test=
"entity.px == '2'.toString() "
>
<!-- 排序-->
order BY sdd.dict_sort desc
order BY sdd.dict_sort desc
...
...
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