@@ -111,7 +111,7 @@ public class SysAdmin extends Entity { | |||
", loginNum=" + loginNum + | |||
", loginFailure=" + loginFailure + | |||
", lastIp=" + lastIp + | |||
", lastTime=" + lastTime + | |||
", lastTime=" + lastTime.toString() + | |||
", status=" + this.getStatus() + | |||
", sort=" + sort + | |||
", createUser=" + createUser + |
@@ -84,11 +84,6 @@ public class SysAdminServiceImpl extends BaseServiceImpl<SysAdminMapper, SysAdmi | |||
QueryWrapper wrapper = new QueryWrapper(); | |||
wrapper.eq("username", username); | |||
wrapper.eq("mark", 1); | |||
try { | |||
SysAdmin admin = sysAdminMapper.selectOne(wrapper); | |||
} catch (Exception e) { | |||
System.out.println(e.getMessage()); | |||
} | |||
SysAdmin admin = sysAdminMapper.selectOne(wrapper); | |||
if (admin != null && !"".equals(admin.getAvatar())) { | |||
admin.setAvatar(imageUrl + admin.getAvatar()); |