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