|
@@ -4,312 +4,67 @@ 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 lombok.Data;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+
|
|
|
import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
- * 产品表
|
|
|
- * @TableName product
|
|
|
+ * 产品表实体类
|
|
|
*/
|
|
|
-@TableName(value ="product")
|
|
|
+@Data
|
|
|
+@Accessors(chain = true)
|
|
|
+@TableName(value = "product")
|
|
|
public class Product implements Serializable {
|
|
|
/**
|
|
|
* ID
|
|
|
*/
|
|
|
@TableId(type = IdType.AUTO)
|
|
|
private Integer id;
|
|
|
-
|
|
|
- /**
|
|
|
- * 架构id
|
|
|
- */
|
|
|
- private Integer structureId;
|
|
|
-
|
|
|
/**
|
|
|
* 产品名称
|
|
|
*/
|
|
|
- private String productname;
|
|
|
-
|
|
|
+ private String productName;
|
|
|
/**
|
|
|
* 上市时间
|
|
|
*/
|
|
|
private Date marketTime;
|
|
|
-
|
|
|
/**
|
|
|
* 所属公司名称 (或租户)
|
|
|
*/
|
|
|
private String companyName;
|
|
|
-
|
|
|
/**
|
|
|
* 租户id
|
|
|
*/
|
|
|
private Integer tenantId;
|
|
|
-
|
|
|
/**
|
|
|
* 产品说明
|
|
|
*/
|
|
|
private String productExplain;
|
|
|
-
|
|
|
- /**
|
|
|
- * 许可费率
|
|
|
- */
|
|
|
- private Double licenseRate;
|
|
|
-
|
|
|
/**
|
|
|
- * 所属产品类别
|
|
|
+ * 所属产品类别id
|
|
|
*/
|
|
|
private Integer categoryId;
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建人id
|
|
|
- */
|
|
|
- private Integer createPersonId;
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建时间
|
|
|
- */
|
|
|
- private Date createTime;
|
|
|
-
|
|
|
- /**
|
|
|
- * 修改时间
|
|
|
- */
|
|
|
- private Date modifiedTime;
|
|
|
-
|
|
|
- @TableField(exist = false)
|
|
|
- private static final long serialVersionUID = 1L;
|
|
|
-
|
|
|
- /**
|
|
|
- * ID
|
|
|
- */
|
|
|
- public Integer getId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * ID
|
|
|
- */
|
|
|
- public void setId(Integer id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 架构id
|
|
|
- */
|
|
|
- public Integer getStructureId() {
|
|
|
- return structureId;
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 架构id
|
|
|
*/
|
|
|
- public void setStructureId(Integer structureId) {
|
|
|
- this.structureId = structureId;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 产品名称
|
|
|
- */
|
|
|
- public String getProductname() {
|
|
|
- return productname;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 产品名称
|
|
|
- */
|
|
|
- public void setProductname(String productname) {
|
|
|
- this.productname = productname;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 上市时间
|
|
|
- */
|
|
|
- public Date getMarketTime() {
|
|
|
- return marketTime;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 上市时间
|
|
|
- */
|
|
|
- public void setMarketTime(Date marketTime) {
|
|
|
- this.marketTime = marketTime;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 所属公司名称 (或租户)
|
|
|
- */
|
|
|
- public String getCompanyName() {
|
|
|
- return companyName;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 所属公司名称 (或租户)
|
|
|
- */
|
|
|
- public void setCompanyName(String companyName) {
|
|
|
- this.companyName = companyName;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 租户id
|
|
|
- */
|
|
|
- public Integer getTenantId() {
|
|
|
- return tenantId;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 租户id
|
|
|
- */
|
|
|
- public void setTenantId(Integer tenantId) {
|
|
|
- this.tenantId = tenantId;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 产品说明
|
|
|
- */
|
|
|
- public String getProductExplain() {
|
|
|
- return productExplain;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 产品说明
|
|
|
- */
|
|
|
- public void setProductExplain(String productExplain) {
|
|
|
- this.productExplain = productExplain;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 许可费率
|
|
|
- */
|
|
|
- public Double getLicenseRate() {
|
|
|
- return licenseRate;
|
|
|
- }
|
|
|
-
|
|
|
+ private Integer structureId;
|
|
|
/**
|
|
|
* 许可费率
|
|
|
*/
|
|
|
- public void setLicenseRate(Double licenseRate) {
|
|
|
- this.licenseRate = licenseRate;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 所属产品类别
|
|
|
- */
|
|
|
- public Integer getCategoryId() {
|
|
|
- return categoryId;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 所属产品类别
|
|
|
- */
|
|
|
- public void setCategoryId(Integer categoryId) {
|
|
|
- this.categoryId = categoryId;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建人id
|
|
|
- */
|
|
|
- public Integer getCreatePersonId() {
|
|
|
- return createPersonId;
|
|
|
- }
|
|
|
-
|
|
|
+ private Double licenseRate;
|
|
|
/**
|
|
|
* 创建人id
|
|
|
*/
|
|
|
- public void setCreatePersonId(Integer createPersonId) {
|
|
|
- this.createPersonId = createPersonId;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建时间
|
|
|
- */
|
|
|
- public Date getCreateTime() {
|
|
|
- return createTime;
|
|
|
- }
|
|
|
-
|
|
|
+ private Integer createPersonId;
|
|
|
/**
|
|
|
* 创建时间
|
|
|
*/
|
|
|
- public void setCreateTime(Date createTime) {
|
|
|
- this.createTime = createTime;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 修改时间
|
|
|
- */
|
|
|
- public Date getModifiedTime() {
|
|
|
- return modifiedTime;
|
|
|
- }
|
|
|
-
|
|
|
+ private Date createTime;
|
|
|
/**
|
|
|
- * 修改时间
|
|
|
+ * 最后修改时间
|
|
|
*/
|
|
|
- public void setModifiedTime(Date modifiedTime) {
|
|
|
- this.modifiedTime = modifiedTime;
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public boolean equals(Object that) {
|
|
|
- if (this == that) {
|
|
|
- return true;
|
|
|
- }
|
|
|
- if (that == null) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (getClass() != that.getClass()) {
|
|
|
- return false;
|
|
|
- }
|
|
|
- Product other = (Product) that;
|
|
|
- return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
|
|
|
- && (this.getStructureId() == null ? other.getStructureId() == null : this.getStructureId().equals(other.getStructureId()))
|
|
|
- && (this.getProductname() == null ? other.getProductname() == null : this.getProductname().equals(other.getProductname()))
|
|
|
- && (this.getMarketTime() == null ? other.getMarketTime() == null : this.getMarketTime().equals(other.getMarketTime()))
|
|
|
- && (this.getCompanyName() == null ? other.getCompanyName() == null : this.getCompanyName().equals(other.getCompanyName()))
|
|
|
- && (this.getTenantId() == null ? other.getTenantId() == null : this.getTenantId().equals(other.getTenantId()))
|
|
|
- && (this.getProductExplain() == null ? other.getProductExplain() == null : this.getProductExplain().equals(other.getProductExplain()))
|
|
|
- && (this.getLicenseRate() == null ? other.getLicenseRate() == null : this.getLicenseRate().equals(other.getLicenseRate()))
|
|
|
- && (this.getCategoryId() == null ? other.getCategoryId() == null : this.getCategoryId().equals(other.getCategoryId()))
|
|
|
- && (this.getCreatePersonId() == null ? other.getCreatePersonId() == null : this.getCreatePersonId().equals(other.getCreatePersonId()))
|
|
|
- && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
|
|
|
- && (this.getModifiedTime() == null ? other.getModifiedTime() == null : this.getModifiedTime().equals(other.getModifiedTime()));
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public int hashCode() {
|
|
|
- final int prime = 31;
|
|
|
- int result = 1;
|
|
|
- result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
|
|
|
- result = prime * result + ((getStructureId() == null) ? 0 : getStructureId().hashCode());
|
|
|
- result = prime * result + ((getProductname() == null) ? 0 : getProductname().hashCode());
|
|
|
- result = prime * result + ((getMarketTime() == null) ? 0 : getMarketTime().hashCode());
|
|
|
- result = prime * result + ((getCompanyName() == null) ? 0 : getCompanyName().hashCode());
|
|
|
- result = prime * result + ((getTenantId() == null) ? 0 : getTenantId().hashCode());
|
|
|
- result = prime * result + ((getProductExplain() == null) ? 0 : getProductExplain().hashCode());
|
|
|
- result = prime * result + ((getLicenseRate() == null) ? 0 : getLicenseRate().hashCode());
|
|
|
- result = prime * result + ((getCategoryId() == null) ? 0 : getCategoryId().hashCode());
|
|
|
- result = prime * result + ((getCreatePersonId() == null) ? 0 : getCreatePersonId().hashCode());
|
|
|
- result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
|
|
|
- result = prime * result + ((getModifiedTime() == null) ? 0 : getModifiedTime().hashCode());
|
|
|
- return result;
|
|
|
- }
|
|
|
+ private Date modifiedTime;
|
|
|
|
|
|
- @Override
|
|
|
- public String toString() {
|
|
|
- StringBuilder sb = new StringBuilder();
|
|
|
- sb.append(getClass().getSimpleName());
|
|
|
- sb.append(" [");
|
|
|
- sb.append("Hash = ").append(hashCode());
|
|
|
- sb.append(", id=").append(id);
|
|
|
- sb.append(", structureId=").append(structureId);
|
|
|
- sb.append(", productname=").append(productname);
|
|
|
- sb.append(", marketTime=").append(marketTime);
|
|
|
- sb.append(", companyName=").append(companyName);
|
|
|
- sb.append(", tenantId=").append(tenantId);
|
|
|
- sb.append(", productExplain=").append(productExplain);
|
|
|
- sb.append(", licenseRate=").append(licenseRate);
|
|
|
- sb.append(", categoryId=").append(categoryId);
|
|
|
- sb.append(", createPersonId=").append(createPersonId);
|
|
|
- sb.append(", createTime=").append(createTime);
|
|
|
- sb.append(", modifiedTime=").append(modifiedTime);
|
|
|
- sb.append(", serialVersionUID=").append(serialVersionUID);
|
|
|
- sb.append("]");
|
|
|
- return sb.toString();
|
|
|
- }
|
|
|
-}
|
|
|
+}
|