Commit af003b64aee9a018f4530f7e05ae758e6aa1cee7

Authored by 王通
1 parent 6cf0c804

1.

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;
... ...