Commit e132a64f0e0214542ab8e8450d38b74a076e5c75
1 parent
984a46b2
1.
Showing
1 changed file
with
4 additions
and
1 deletions
src/main/java/com/bsth/entity/sys/SysUser.java
| @@ -2,6 +2,7 @@ package com.bsth.entity.sys; | @@ -2,6 +2,7 @@ package com.bsth.entity.sys; | ||
| 2 | 2 | ||
| 3 | import com.fasterxml.jackson.annotation.JsonIgnore; | 3 | import com.fasterxml.jackson.annotation.JsonIgnore; |
| 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 5 | +import org.springframework.format.annotation.DateTimeFormat; | ||
| 5 | import org.springframework.util.StringUtils; | 6 | import org.springframework.util.StringUtils; |
| 6 | import org.joda.time.DateTime; | 7 | import org.joda.time.DateTime; |
| 7 | import javax.persistence.*; | 8 | import javax.persistence.*; |
| @@ -37,10 +38,12 @@ public class SysUser implements Serializable { | @@ -37,10 +38,12 @@ public class SysUser implements Serializable { | ||
| 37 | 38 | ||
| 38 | @Column(name = "update_date", columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") | 39 | @Column(name = "update_date", columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") |
| 39 | private Date updateDate; | 40 | private Date updateDate; |
| 40 | - | 41 | + |
| 42 | + @DateTimeFormat(pattern = "yyyy-MM-dd") | ||
| 41 | private Date lastLoginDate; | 43 | private Date lastLoginDate; |
| 42 | 44 | ||
| 43 | /** 最近密码更新时间 */ | 45 | /** 最近密码更新时间 */ |
| 46 | + @DateTimeFormat(pattern = "yyyy-MM-dd") | ||
| 44 | private Date lastPwdDate; | 47 | private Date lastPwdDate; |
| 45 | /** 密码有效期 */ | 48 | /** 密码有效期 */ |
| 46 | private Integer pwdValidPeriod; | 49 | private Integer pwdValidPeriod; |