From 1dfe61fdf1b36061871ead5337172801e64df201 Mon Sep 17 00:00:00 2001 From: Jinquan_Ou <Jinquan@gdut.com> Date: 星期一, 03 四月 2023 16:07:36 +0800 Subject: [PATCH] 魅宠、家庭小医生1.0 --- zhang-content/src/main/java/com/ruoyi/domain/ZfPetNote.java | 85 ++++++++++-------------------------------- 1 files changed, 20 insertions(+), 65 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/domain/ZfPetNote.java b/zhang-content/src/main/java/com/ruoyi/domain/ZfPetNote.java index 20a81d5..83adbd4 100644 --- a/zhang-content/src/main/java/com/ruoyi/domain/ZfPetNote.java +++ b/zhang-content/src/main/java/com/ruoyi/domain/ZfPetNote.java @@ -3,8 +3,13 @@ import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import com.ruoyi.common.annotation.Excel; +import lombok.Data; +import lombok.ToString; + import java.io.Serializable; -import java.time.LocalDateTime; +import java.util.Date; /** * <p> @@ -15,96 +20,46 @@ * @since 2023-03-12 */ @TableName("zf_pet_note") +@Data +@ToString public class ZfPetNote implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) - private Integer id; + private Long id; /** - * 瀹犵墿琛╥d + * 瀹犵墿id */ - private Integer pid; + private Long pid; /** * 璁板綍鏃堕棿 */ - private LocalDateTime createTime; + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "璁板綍鏃堕棿", dateFormat = "yyyy-MM-dd") + private Date createTime; /** * 棰樺悕 */ + @Excel(name = "棰樺悕") private String title; /** * 鎻愰啋鏃堕棿 */ - private LocalDateTime remindTime; + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "鎻愰啋鏃堕棿", dateFormat = "yyyy-MM-dd") + private Date remindTime; /** * 澶囨敞 */ + @Excel(name = "澶囨敞") private String remark; + private String url; - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getPid() { - return pid; - } - - public void setPid(Integer pid) { - this.pid = pid; - } - - public LocalDateTime getCreateTime() { - return createTime; - } - - public void setCreateTime(LocalDateTime createTime) { - this.createTime = createTime; - } - - public String getTitle() { - return title; - } - - public void setTitle(String title) { - this.title = title; - } - - public LocalDateTime getRemindTime() { - return remindTime; - } - - public void setRemindTime(LocalDateTime remindTime) { - this.remindTime = remindTime; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - @Override - public String toString() { - return "ZfPetNote{" + - "id=" + id + - ", pid=" + pid + - ", createTime=" + createTime + - ", title=" + title + - ", remindTime=" + remindTime + - ", remark=" + remark + - "}"; - } } -- Gitblit v1.9.1