From b4754ea670156f7f799311a9fdc9b3d380982fcb Mon Sep 17 00:00:00 2001 From: Jinquan_Ou <Jinquan@gdut.com> Date: 星期四, 06 四月 2023 18:23:00 +0800 Subject: [PATCH] 555 --- zhang-content/src/main/java/com/ruoyi/domain/ZfEquipment.java | 89 ++++++++++---------------------------------- 1 files changed, 21 insertions(+), 68 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/domain/ZfEquipment.java b/zhang-content/src/main/java/com/ruoyi/domain/ZfEquipment.java index 36e0563..f42490b 100644 --- a/zhang-content/src/main/java/com/ruoyi/domain/ZfEquipment.java +++ b/zhang-content/src/main/java/com/ruoyi/domain/ZfEquipment.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 java.io.Serializable; import java.time.LocalDateTime; +import java.util.Date; /** * <p> @@ -15,110 +20,58 @@ * @since 2023-03-12 */ @TableName("zf_equipment") +@Data public class ZfEquipment implements Serializable { private static final long serialVersionUID = 1L; @TableId(value = "id", type = IdType.AUTO) - private Integer id; + private Long id; /** * 璁惧鍚嶇О */ + @Excel(name = "璁惧鍚嶇О") private String name; /** * 璁板綍鏃堕棿 */ - private LocalDateTime createDate; + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "鍒涘缓鏃堕棿", dateFormat = "yyyy-MM-dd") + private Date createDate; /** * 璐拱浜� */ + @Excel(name = "璐拱浜�") private String buyer; /** * 浜嬮」鍐呭 */ + @Excel(name = "浜嬮」鍐呭") private String content; /** * 瀛樻斁鍦扮偣 */ + @Excel(name = "瀛樻斁鍦扮偣") private String location; /** * 澶囨敞 */ + @Excel(name = "澶囨敞") private String remark; + /** + * 瀹跺涵id + */ + @Excel(name = "瀹跺涵id") + private String familyId; - public Integer getId() { - return id; - } + private String url; - public void setId(Integer id) { - this.id = id; - } - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public LocalDateTime getCreateDate() { - return createDate; - } - - public void setCreateDate(LocalDateTime createDate) { - this.createDate = createDate; - } - - public String getBuyer() { - return buyer; - } - - public void setBuyer(String buyer) { - this.buyer = buyer; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content; - } - - public String getLocation() { - return location; - } - - public void setLocation(String location) { - this.location = location; - } - - public String getRemark() { - return remark; - } - - public void setRemark(String remark) { - this.remark = remark; - } - - @Override - public String toString() { - return "ZfEquipment{" + - "id=" + id + - ", name=" + name + - ", createDate=" + createDate + - ", buyer=" + buyer + - ", content=" + content + - ", location=" + location + - ", remark=" + remark + - "}"; - } } -- Gitblit v1.9.1