锁定用户登录自动解锁

This commit is contained in:
TS-QD1 2024-10-17 22:53:04 +08:00
parent fba72ec0b0
commit b8d567cd30
2 changed files with 4 additions and 0 deletions

View File

@ -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);

View File

@ -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>