|
@@ -0,0 +1,249 @@
|
|
|
|
+package com.caimei.modules.baike.entity;
|
|
|
|
+
|
|
|
|
+import org.hibernate.validator.constraints.Length;
|
|
|
|
+import java.util.Date;
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
+
|
|
|
|
+import com.thinkgem.jeesite.common.persistence.DataEntity;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * 采美百科产品/仪器Entity
|
|
|
|
+ * @author Aslee
|
|
|
|
+ * @version 2021-11-19
|
|
|
|
+ */
|
|
|
|
+public class CmBaikeProduct extends DataEntity<CmBaikeProduct> {
|
|
|
|
+
|
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
|
+ private Integer classify; // 分类:1产品,2仪器
|
|
|
|
+ private String name; // 名称
|
|
|
|
+ private String alias; // 别名
|
|
|
|
+ private String discription; // 描述
|
|
|
|
+ private String image; // 图片
|
|
|
|
+ private String advantage; // 优点
|
|
|
|
+ private String disadvantage; // 缺点
|
|
|
|
+ private String principle; // 原理
|
|
|
|
+ private String brand; // 品牌
|
|
|
|
+ private String producePlace; // 产地
|
|
|
|
+ private Date marketTime; // 上市时间
|
|
|
|
+ private String company; // 公司/供应商
|
|
|
|
+ private Date nmpaTime; // NMPA认证时间
|
|
|
|
+ private String adaptiveMan; // 适应人群
|
|
|
|
+ private String unAdaptiveMan; // 不适应人群
|
|
|
|
+ private String aroundOperation; // 术前术后
|
|
|
|
+ private Date publishTime; // 发布时间
|
|
|
|
+ private Integer basePv; // 基础浏览量
|
|
|
|
+ private Integer actualPv; // 实际浏览量
|
|
|
|
+ private Integer typeId; // 分类id
|
|
|
|
+ private Integer topPosition; // 置顶位
|
|
|
|
+ private Integer status; // 状态:0停用,1启用
|
|
|
|
+ private Date addTime; // 添加时间
|
|
|
|
+
|
|
|
|
+ public CmBaikeProduct() {
|
|
|
|
+ super();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public CmBaikeProduct(String id){
|
|
|
|
+ super(id);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getClassify() {
|
|
|
|
+ return classify;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setClassify(Integer classify) {
|
|
|
|
+ this.classify = classify;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=50, message="名称长度必须介于 0 和 50 之间")
|
|
|
|
+ public String getName() {
|
|
|
|
+ return name;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setName(String name) {
|
|
|
|
+ this.name = name;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=50, message="别名长度必须介于 0 和 50 之间")
|
|
|
|
+ public String getAlias() {
|
|
|
|
+ return alias;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setAlias(String alias) {
|
|
|
|
+ this.alias = alias;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=300, message="描述长度必须介于 0 和 300 之间")
|
|
|
|
+ public String getDiscription() {
|
|
|
|
+ return discription;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setDiscription(String discription) {
|
|
|
|
+ this.discription = discription;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public String getImage() {
|
|
|
|
+ return image;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setImage(String image) {
|
|
|
|
+ this.image = image;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=500, message="优点长度必须介于 0 和 500 之间")
|
|
|
|
+ public String getAdvantage() {
|
|
|
|
+ return advantage;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setAdvantage(String advantage) {
|
|
|
|
+ this.advantage = advantage;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=500, message="缺点长度必须介于 0 和 500 之间")
|
|
|
|
+ public String getDisadvantage() {
|
|
|
|
+ return disadvantage;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setDisadvantage(String disadvantage) {
|
|
|
|
+ this.disadvantage = disadvantage;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=500, message="原理长度必须介于 0 和 500 之间")
|
|
|
|
+ public String getPrinciple() {
|
|
|
|
+ return principle;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setPrinciple(String principle) {
|
|
|
|
+ this.principle = principle;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=50, message="品牌长度必须介于 0 和 50 之间")
|
|
|
|
+ public String getBrand() {
|
|
|
|
+ return brand;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setBrand(String brand) {
|
|
|
|
+ this.brand = brand;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=50, message="产地长度必须介于 0 和 50 之间")
|
|
|
|
+ public String getProducePlace() {
|
|
|
|
+ return producePlace;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setProducePlace(String producePlace) {
|
|
|
|
+ this.producePlace = producePlace;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
+ public Date getMarketTime() {
|
|
|
|
+ return marketTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setMarketTime(Date marketTime) {
|
|
|
|
+ this.marketTime = marketTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=50, message="公司/供应商长度必须介于 0 和 50 之间")
|
|
|
|
+ public String getCompany() {
|
|
|
|
+ return company;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setCompany(String company) {
|
|
|
|
+ this.company = company;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
+ public Date getNmpaTime() {
|
|
|
|
+ return nmpaTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setNmpaTime(Date nmpaTime) {
|
|
|
|
+ this.nmpaTime = nmpaTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=500, message="适应人群长度必须介于 0 和 500 之间")
|
|
|
|
+ public String getAdaptiveMan() {
|
|
|
|
+ return adaptiveMan;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setAdaptiveMan(String adaptiveMan) {
|
|
|
|
+ this.adaptiveMan = adaptiveMan;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=500, message="不适应人群长度必须介于 0 和 500 之间")
|
|
|
|
+ public String getUnAdaptiveMan() {
|
|
|
|
+ return unAdaptiveMan;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setUnAdaptiveMan(String unAdaptiveMan) {
|
|
|
|
+ this.unAdaptiveMan = unAdaptiveMan;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Length(min=0, max=500, message="术前术后长度必须介于 0 和 500 之间")
|
|
|
|
+ public String getAroundOperation() {
|
|
|
|
+ return aroundOperation;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setAroundOperation(String aroundOperation) {
|
|
|
|
+ this.aroundOperation = aroundOperation;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
+ public Date getPublishTime() {
|
|
|
|
+ return publishTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setPublishTime(Date publishTime) {
|
|
|
|
+ this.publishTime = publishTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getBasePv() {
|
|
|
|
+ return basePv;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setBasePv(Integer basePv) {
|
|
|
|
+ this.basePv = basePv;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getActualPv() {
|
|
|
|
+ return actualPv;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setActualPv(Integer actualPv) {
|
|
|
|
+ this.actualPv = actualPv;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getTypeId() {
|
|
|
|
+ return typeId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setTypeId(Integer typeId) {
|
|
|
|
+ this.typeId = typeId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getTopPosition() {
|
|
|
|
+ return topPosition;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setTopPosition(Integer topPosition) {
|
|
|
|
+ this.topPosition = topPosition;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public Integer getStatus() {
|
|
|
|
+ return status;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setStatus(Integer status) {
|
|
|
|
+ this.status = status;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
+ public Date getAddTime() {
|
|
|
|
+ return addTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setAddTime(Date addTime) {
|
|
|
|
+ this.addTime = addTime;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|