| | |
| | | password varchar(100) default '' comment '密码',
|
| | | status char(1) default '0' comment '帐号状态(0正常 1停用)',
|
| | | del_flag char(1) default '0' comment '删除标志(0代表存在 2代表删除)',
|
| | | login_ip varchar(50) default '' comment '最后登陆IP',
|
| | | login_date datetime comment '最后登陆时间',
|
| | | login_ip varchar(50) default '' comment '最后登录IP',
|
| | | login_date datetime comment '最后登录时间',
|
| | | create_by varchar(64) default '' comment '创建者',
|
| | | create_time datetime comment '创建时间',
|
| | | update_by varchar(64) default '' comment '更新者',
|
| | |
| | | private static final Logger sys_user_logger = LoggerFactory.getLogger("sys-user");
|
| | |
|
| | | /**
|
| | | * 记录登陆信息
|
| | | * 记录登录信息
|
| | | *
|
| | | * @param username 用户名
|
| | | * @param status 状态
|
| | |
| | | private String token;
|
| | |
|
| | | /**
|
| | | * 登陆时间
|
| | | * 登录时间
|
| | | */
|
| | | private Long loginTime;
|
| | |
|
| | |
| | | return getDataTable(list);
|
| | | }
|
| | |
|
| | | @Log(title = "登陆日志", businessType = BusinessType.EXPORT)
|
| | | @Log(title = "登录日志", businessType = BusinessType.EXPORT)
|
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:export')")
|
| | | @GetMapping("/export")
|
| | | public AjaxResult export(SysLogininfor logininfor)
|
| | | {
|
| | | List<SysLogininfor> list = logininforService.selectLogininforList(logininfor);
|
| | | ExcelUtil<SysLogininfor> util = new ExcelUtil<SysLogininfor>(SysLogininfor.class);
|
| | | return util.exportExcel(list, "登陆日志");
|
| | | return util.exportExcel(list, "登录日志");
|
| | | }
|
| | |
|
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
|
| | | @Log(title = "登陆日志", businessType = BusinessType.DELETE)
|
| | | @Log(title = "登录日志", businessType = BusinessType.DELETE)
|
| | | @DeleteMapping("/{infoIds}")
|
| | | public AjaxResult remove(@PathVariable Long[] infoIds)
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | @PreAuthorize("@ss.hasPermi('monitor:logininfor:remove')")
|
| | | @Log(title = "登陆日志", businessType = BusinessType.CLEAN)
|
| | | @Log(title = "登录日志", businessType = BusinessType.CLEAN)
|
| | | @DeleteMapping("/clean")
|
| | | public AjaxResult clean()
|
| | | {
|
| | |
| | | /** 删除标志(0代表存在 2代表删除) */
|
| | | private String delFlag;
|
| | |
|
| | | /** 最后登陆IP */
|
| | | @Excel(name = "最后登陆IP", type = Type.EXPORT)
|
| | | /** 最后登录IP */
|
| | | @Excel(name = "最后登录IP", type = Type.EXPORT)
|
| | | private String loginIp;
|
| | |
|
| | | /** 最后登陆时间 */
|
| | | @Excel(name = "最后登陆时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
|
| | | /** 最后登录时间 */
|
| | | @Excel(name = "最后登录时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Type.EXPORT)
|
| | | private Date loginDate;
|
| | |
|
| | | /** 部门对象 */
|