修改max提出的查询sql不正确的问题
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
select *
|
select *
|
||||||
FROM jsh_user
|
FROM jsh_user
|
||||||
where 1=1
|
where 1=1
|
||||||
and user.status not in('1','2')
|
and status not in('1','2')
|
||||||
<if test="userName != null">
|
<if test="userName != null">
|
||||||
and username like '%${userName}%'
|
and username like '%${userName}%'
|
||||||
</if>
|
</if>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
COUNT(id)
|
COUNT(id)
|
||||||
FROM jsh_user
|
FROM jsh_user
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
and user.status not in('1','2')
|
and status not in('1','2')
|
||||||
<if test="userName != null">
|
<if test="userName != null">
|
||||||
and username like '%${userName}%'
|
and username like '%${userName}%'
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
Reference in New Issue
Block a user