锁定用户登录自动解锁
This commit is contained in:
parent
fba72ec0b0
commit
b8d567cd30
@ -219,6 +219,7 @@ public class UserLoginService {
|
||||
private void updateLoginInfo(String userId, String address, String currentTime) throws UpdateException {
|
||||
Map<String, Object> params = new HashMap<>(10);
|
||||
params.put("userId", userId);
|
||||
params.put("userState", 0);
|
||||
params.put("lastLoginAddress", address);
|
||||
params.put("lastLoginTime", currentTime);
|
||||
params.put("gmtModified", currentTime);
|
||||
|
@ -230,6 +230,9 @@
|
||||
UPDATE
|
||||
sys_user
|
||||
SET
|
||||
<if test="userState != null">
|
||||
user_state = #{userState},
|
||||
</if>
|
||||
<if test="userLongitude != null and userLongitude != ''">
|
||||
user_longitude = #{userLongitude},
|
||||
</if>
|
||||
|
Loading…
Reference in New Issue
Block a user