package com.javaweb.geo.domain; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.javaweb.common.annotation.Excel; import com.javaweb.common.core.domain.BaseEntity; import java.util.Date; /** * 设备库对象 js_device * * @author cxy * @date 2024-05-16 */ public class Device extends BaseEntity { private static final long serialVersionUID = 1L; /** 主键 */ private String id; /** 设备编号 */ @Excel(name = "设备编号") private String code; /** 名字 */ @Excel(name = "名字") private String name; /** 型号 */ @Excel(name = "型号") private String type; /** 生产商 */ @Excel(name = "生产商") private String manufacturer; /** 购买日期 */ @Excel(name = "购买日期", width = 30, dateFormat = "yyyy-MM-dd") private Date buyDate; /** 价格 */ @Excel(name = "价格") private Double price; /** 设备状态 */ @Excel(name = "设备状态") private String status; /** 存放位置 */ @Excel(name = "存放位置") private String storageAddress; public void setId(String id) { this.id = id; } public String getId() { return id; } public void setCode(String code) { this.code = code; } public String getCode() { return code; } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setType(String type) { this.type = type; } public String getType() { return type; } public void setManufacturer(String manufacturer) { this.manufacturer = manufacturer; } public String getManufacturer() { return manufacturer; } public void setBuyDate(Date buyDate) { this.buyDate = buyDate; } public Date getBuyDate() { return buyDate; } public void setPrice(Double price) { this.price = price; } public Double getPrice() { return price; } public void setStatus(String status) { this.status = status; } public String getStatus() { return status; } public void setStorageAddress(String storageAddress) { this.storageAddress = storageAddress; } public String getStorageAddress() { return storageAddress; } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) .append("code", getCode()) .append("name", getName()) .append("type", getType()) .append("manufacturer", getManufacturer()) .append("buyDate", getBuyDate()) .append("price", getPrice()) .append("status", getStatus()) .append("storageAddress", getStorageAddress()) .toString(); } }