正在显示
2 个修改的文件
包含
4 行增加
和
0 行删除
| 1 | package com.ruoyi.project.monitor.domain; | 1 | package com.ruoyi.project.monitor.domain; |
| 2 | 2 | ||
| 3 | import java.util.Date; | 3 | import java.util.Date; |
| 4 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 4 | import com.ruoyi.framework.aspectj.lang.annotation.Excel; | 5 | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| 5 | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType; | 6 | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType; |
| 6 | import com.ruoyi.framework.web.domain.BaseEntity; | 7 | import com.ruoyi.framework.web.domain.BaseEntity; |
| @@ -47,6 +48,7 @@ public class SysLogininfor extends BaseEntity | @@ -47,6 +48,7 @@ public class SysLogininfor extends BaseEntity | ||
| 47 | private String msg; | 48 | private String msg; |
| 48 | 49 | ||
| 49 | /** 访问时间 */ | 50 | /** 访问时间 */ |
| 51 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
| 50 | @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") | 52 | @Excel(name = "访问时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| 51 | private Date loginTime; | 53 | private Date loginTime; |
| 52 | 54 |
| 1 | package com.ruoyi.project.monitor.domain; | 1 | package com.ruoyi.project.monitor.domain; |
| 2 | 2 | ||
| 3 | import java.util.Date; | 3 | import java.util.Date; |
| 4 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
| 4 | import com.ruoyi.framework.aspectj.lang.annotation.Excel; | 5 | import com.ruoyi.framework.aspectj.lang.annotation.Excel; |
| 5 | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType; | 6 | import com.ruoyi.framework.aspectj.lang.annotation.Excel.ColumnType; |
| 6 | import com.ruoyi.framework.web.domain.BaseEntity; | 7 | import com.ruoyi.framework.web.domain.BaseEntity; |
| @@ -78,6 +79,7 @@ public class SysOperLog extends BaseEntity | @@ -78,6 +79,7 @@ public class SysOperLog extends BaseEntity | ||
| 78 | private String errorMsg; | 79 | private String errorMsg; |
| 79 | 80 | ||
| 80 | /** 操作时间 */ | 81 | /** 操作时间 */ |
| 82 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | ||
| 81 | @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") | 83 | @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| 82 | private Date operTime; | 84 | private Date operTime; |
| 83 | 85 |
-
请 注册 或 登录 后发表评论