新增用户注册/登录
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
#sql("user.list")
|
||||
SELECT * FROM `user`
|
||||
SELECT * FROM `user` u
|
||||
WHERE u.status != -1
|
||||
#if(userId)
|
||||
AND u.`userId` = #(userId)
|
||||
#end
|
||||
#if(username)
|
||||
AND u.`username` = '#(username)'
|
||||
#end
|
||||
#if(email)
|
||||
AND u.`email` = '#(email)'
|
||||
#end
|
||||
|
||||
#if(order)
|
||||
ORDER BY #(order)
|
||||
#else
|
||||
ORDER BY u.createTime DESC
|
||||
#end
|
||||
#end
|
Reference in New Issue
Block a user