| | |
| | | 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.LocalDate; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | * @since 2023-03-12 |
| | | */ |
| | | @TableName("zf_pet") |
| | | @Data |
| | | @ToString |
| | | public class ZfPet implements Serializable { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Integer id; |
| | | private Long id; |
| | | |
| | | /** |
| | | * 犬证号码 |
| | | * 宠物号码 |
| | | */ |
| | | @Excel(name = "宠物号码") |
| | | private String idNum; |
| | | |
| | | /** |
| | | * 防伪码 |
| | | */ |
| | | @Excel(name = "防伪码") |
| | | private String securityCode; |
| | | |
| | | /** |
| | | * 犬种 |
| | | * 宠物品种 |
| | | */ |
| | | @Excel(name = "宠物品种") |
| | | private String type; |
| | | |
| | | /** |
| | | * 犬名 |
| | | * 宠物名称 |
| | | */ |
| | | @Excel(name = "宠物名称") |
| | | private String name; |
| | | |
| | | /** |
| | | * 出生日期 |
| | | */ |
| | | private LocalDate birth; |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "出生日期", dateFormat = "yyyy-MM-dd") |
| | | private Date birth; |
| | | |
| | | /** |
| | | * 性别,0:雌,1:雄 |
| | | */ |
| | | @Excel(name = "性别",readConverterExp = "0=雌,1=雄") |
| | | private Integer sex; |
| | | |
| | | /** |
| | | * 犬只颜色 |
| | | * 宠物颜色 |
| | | */ |
| | | @Excel(name = "宠物颜色") |
| | | private String color; |
| | | |
| | | /** |
| | | * 犬只性质 |
| | | * 宠物性质 |
| | | */ |
| | | @Excel(name = "宠物性质") |
| | | private String properties; |
| | | |
| | | /** |
| | | * 饮食习惯 |
| | | */ |
| | | @Excel(name = "饮食习惯") |
| | | private String eatHabit; |
| | | |
| | | /** |
| | | * 生活习惯 |
| | | */ |
| | | @Excel(name = "生活习惯") |
| | | private String lifeHabit; |
| | | |
| | | /** |
| | | * 犬居住地址 |
| | | */ |
| | | @Excel(name = "宠物居住地址") |
| | | private String address; |
| | | |
| | | /** |
| | | * 能听懂的方言 |
| | | */ |
| | | @Excel(name = "能听懂的方言") |
| | | private String dialect; |
| | | |
| | | private String url; |
| | | |
| | | public Integer getId() { |
| | | return id; |
| | | } |
| | | |
| | | public void setId(Integer id) { |
| | | this.id = id; |
| | | } |
| | | |
| | | public String getIdNum() { |
| | | return idNum; |
| | | } |
| | | |
| | | public void setIdNum(String idNum) { |
| | | this.idNum = idNum; |
| | | } |
| | | |
| | | public String getSecurityCode() { |
| | | return securityCode; |
| | | } |
| | | |
| | | public void setSecurityCode(String securityCode) { |
| | | this.securityCode = securityCode; |
| | | } |
| | | |
| | | public String getType() { |
| | | return type; |
| | | } |
| | | |
| | | public void setType(String type) { |
| | | this.type = type; |
| | | } |
| | | |
| | | public String getName() { |
| | | return name; |
| | | } |
| | | |
| | | public void setName(String name) { |
| | | this.name = name; |
| | | } |
| | | |
| | | public LocalDate getBirth() { |
| | | return birth; |
| | | } |
| | | |
| | | public void setBirth(LocalDate birth) { |
| | | this.birth = birth; |
| | | } |
| | | |
| | | public Integer getSex() { |
| | | return sex; |
| | | } |
| | | |
| | | public void setSex(Integer sex) { |
| | | this.sex = sex; |
| | | } |
| | | |
| | | public String getColor() { |
| | | return color; |
| | | } |
| | | |
| | | public void setColor(String color) { |
| | | this.color = color; |
| | | } |
| | | |
| | | public String getProperties() { |
| | | return properties; |
| | | } |
| | | |
| | | public void setProperties(String properties) { |
| | | this.properties = properties; |
| | | } |
| | | |
| | | public String getEatHabit() { |
| | | return eatHabit; |
| | | } |
| | | |
| | | public void setEatHabit(String eatHabit) { |
| | | this.eatHabit = eatHabit; |
| | | } |
| | | |
| | | public String getLifeHabit() { |
| | | return lifeHabit; |
| | | } |
| | | |
| | | public void setLifeHabit(String lifeHabit) { |
| | | this.lifeHabit = lifeHabit; |
| | | } |
| | | |
| | | public String getAddress() { |
| | | return address; |
| | | } |
| | | |
| | | public void setAddress(String address) { |
| | | this.address = address; |
| | | } |
| | | |
| | | public String getDialect() { |
| | | return dialect; |
| | | } |
| | | |
| | | public void setDialect(String dialect) { |
| | | this.dialect = dialect; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "ZfPet{" + |
| | | "id=" + id + |
| | | ", idNum=" + idNum + |
| | | ", securityCode=" + securityCode + |
| | | ", type=" + type + |
| | | ", name=" + name + |
| | | ", birth=" + birth + |
| | | ", sex=" + sex + |
| | | ", color=" + color + |
| | | ", properties=" + properties + |
| | | ", eatHabit=" + eatHabit + |
| | | ", lifeHabit=" + lifeHabit + |
| | | ", address=" + address + |
| | | ", dialect=" + dialect + |
| | | "}"; |
| | | } |
| | | } |