新增用户注册/登录
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#------------------------------------------------#
|
||||
jdbcUrl=jdbc\:mysql\://dbserver\:3306/jfly?useUnicode\=true&characterEncoding\=utf8&useSSL\=false
|
||||
user=root
|
||||
password=*hello9796!
|
||||
user=guest
|
||||
password=hello
|
||||
|
||||
redis.cache_name=jfly
|
||||
redis.database=1
|
||||
|
@@ -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