diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsDoctor.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsDoctor.java index 5333521..535d2f3 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsDoctor.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsDoctor.java @@ -7,6 +7,7 @@ import com.baomidou.mybatisplus.annotation.TableName; import java.io.Serializable; import java.util.Date; import lombok.Data; +import org.springframework.format.annotation.DateTimeFormat; /** * 医生 @@ -100,6 +101,7 @@ public class LymsDoctor implements Serializable { * 创建时间 */ @TableField(value = "createdtime") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date createdtime; /** @@ -112,6 +114,7 @@ public class LymsDoctor implements Serializable { * 更新时间 */ @TableField(value = "updated_time") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date updatedTime; @TableField(exist = false) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsUser.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsUser.java index e24c201..8a6343c 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsUser.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/LymsUser.java @@ -58,14 +58,14 @@ public class LymsUser implements Serializable { // 医院ID @TableField(value = "hid") - private int hid; + private Integer hid; // 医院名称 @TableField(value = "hname") private String hname; // 科室ID @TableField(value = "did") - private int did; + private Integer did; // 科室名称 @TableField(value = "dname") private String dname;