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 | 2 | |
| 3 | 3 | import com.fasterxml.jackson.annotation.JsonIgnore; |
| 4 | 4 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
| 5 | +import org.springframework.format.annotation.DateTimeFormat; | |
| 5 | 6 | import org.springframework.util.StringUtils; |
| 6 | 7 | import org.joda.time.DateTime; |
| 7 | 8 | import javax.persistence.*; |
| ... | ... | @@ -37,10 +38,12 @@ public class SysUser implements Serializable { |
| 37 | 38 | |
| 38 | 39 | @Column(name = "update_date", columnDefinition = "timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP") |
| 39 | 40 | private Date updateDate; |
| 40 | - | |
| 41 | + | |
| 42 | + @DateTimeFormat(pattern = "yyyy-MM-dd") | |
| 41 | 43 | private Date lastLoginDate; |
| 42 | 44 | |
| 43 | 45 | /** 最近密码更新时间 */ |
| 46 | + @DateTimeFormat(pattern = "yyyy-MM-dd") | |
| 44 | 47 | private Date lastPwdDate; |
| 45 | 48 | /** 密码有效期 */ |
| 46 | 49 | private Integer pwdValidPeriod; | ... | ... |