Commit 2e26e41a authored by qiankunpingtai's avatar qiankunpingtai
Browse files

修改max提出的查询sql不正确的问题

parent 72e088c6
...@@ -11,7 +11,7 @@ ...@@ -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 @@ ...@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment