| | |
| | | package com.ruoyi.domain; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | 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> |
| | |
| | | * @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; |
| | | @Excel(name = "保修期限") |
| | | private String baoXiu; |
| | | |
| | | /** |
| | | * 插入时间 |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | private Date createTime; |
| | | |
| | | /** |
| | | * 购买人 |
| | | */ |
| | | @Excel(name = "购买人") |
| | | private String buyer; |
| | | |
| | | /** |
| | | * 事项内容 |
| | | */ |
| | | @Excel(name = "事项内容") |
| | | private String content; |
| | | |
| | | /** |
| | | * 存放地点 |
| | | */ |
| | | @Excel(name = "存放地点") |
| | | private String location; |
| | | |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @Excel(name = "备注") |
| | | private String remark; |
| | | |
| | | /** |
| | | * 家庭id |
| | | */ |
| | | @Excel(name = "所属家庭编号(导入数据时请删除此栏)") |
| | | private Long familyId; |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | private String url; |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | @Excel(name = "是否注销",readConverterExp = "0=正常,1=已注销") |
| | | private Integer status; |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | /** |
| | | * 是否是本家庭的数据(0:不是,1:是) |
| | | */ |
| | | @TableField(exist = false) |
| | | private Integer ownData = 0; |
| | | |
| | | public LocalDateTime getCreateDate() { |
| | | return createDate; |
| | | } |
| | | /** |
| | | * 开始时间 |
| | | */ |
| | | @TableField(exist = false) |
| | | private Date happenStartTime; |
| | | |
| | | public void setCreateDate(LocalDateTime createDate) { |
| | | this.createDate = createDate; |
| | | } |
| | | /** |
| | | * 结束时间 |
| | | */ |
| | | @TableField(exist = false) |
| | | private Date happenEndTime; |
| | | |
| | | public String getBuyer() { |
| | | return buyer; |
| | | } |
| | | /** |
| | | * 记录时间 |
| | | */ |
| | | @Excel(name = "时间", dateFormat = "yyyy-MM-dd") |
| | | @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8") |
| | | private Date happenTime; |
| | | |
| | | 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 + |
| | | "}"; |
| | | } |
| | | } |