|
|
@@ -118,8 +118,10 @@ public class UserLoginController extends BaseController {
|
|
|
|
|
|
if (a!=null) {
|
|
|
shiroAddRedis();
|
|
|
- a.setLastLoginTime(new Date());
|
|
|
- adminMapper.updateByPrimaryKeySelective(a);
|
|
|
+ Admin updateDate =new Admin();
|
|
|
+ updateDate.setId(a.getId());
|
|
|
+ updateDate.setLastLoginTime(new Date());
|
|
|
+ adminMapper.updateByPrimaryKeySelective(updateDate);
|
|
|
}
|
|
|
return res;
|
|
|
}
|