增加导入导出题目,增加用户页面的最近登录

This commit is contained in:
Himit_ZH 2021-05-28 21:52:24 +08:00
parent dc3249db42
commit 5581ec931e
2 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="api" />
<module name="JudgeServer" />
<module name="DataBackup" />
<module name="JudgeServer" />
</profile>
</annotationProcessing>
</component>

View File

@ -358,7 +358,7 @@ public class AccountController {
userHomeInfo.setSolvedList(disPlayIdList);
QueryWrapper<Session> sessionQueryWrapper = new QueryWrapper<>();
sessionQueryWrapper.eq("uid", userRolesVo.getUid()).orderByDesc("gmt_create").last("limit 1");
sessionQueryWrapper.eq("uid", uid).orderByDesc("gmt_create").last("limit 1");
Session recentSession = sessionDao.selectOne(sessionQueryWrapper);
if (recentSession != null) {