From 59e91a4e9ddaf23cebb12993c774aa899ab22d16 Mon Sep 17 00:00:00 2001 From: 郑永安 <zyazyz250@sina.com> Date: 星期一, 19 六月 2023 14:22:45 +0800 Subject: [PATCH] 描述 --- src/main/java/com/gk/firework/Domain/ProductInfo.java | 298 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 298 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/gk/firework/Domain/ProductInfo.java b/src/main/java/com/gk/firework/Domain/ProductInfo.java new file mode 100644 index 0000000..e4c1e7e --- /dev/null +++ b/src/main/java/com/gk/firework/Domain/ProductInfo.java @@ -0,0 +1,298 @@ +package com.gk.firework.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 javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +@TableName(value = "product",resultMap = "BaseResultMap") +public class ProductInfo implements Serializable { + @TableField(exist = false) + private static final long serialVersionUID = 1L; + + /** id **/ + @TableId(type = IdType.AUTO) + private Long id; + + /** 产品名(限制长度255) name **/ + @NotBlank(message = "产品名不能为空") + private String name; + + /** 流向码(十位) directionCode **/ +// @NotBlank(message = "流向码不能为空") + @TableField(value = "directioncode") + private String directionCode; + + /** 进价 purchasePrice **/ + @TableField(value = "purchaseprice") + private BigDecimal purchasePrice; + + /** 售价 salePrice **/ + @TableField(value = "saleprice") + private BigDecimal salePrice; + + /** 生产厂家 manufacturer **/ + @NotBlank(message = "生产厂家不能为空") + private String manufacturer; + + /** 规格(一般为2位字母数字组合) specification **/ + @NotBlank(message = "规格不能为空") + private String specification; + + /** 含药量(一般为数字,部分含有单位) explosiveContent **/ + @NotNull(message = "含药量不能为空") + @TableField(value = "explosivecontent") + private BigDecimal explosiveContent; + + /** (烟花爆竹)类型(爆竹类,单个爆竹类,喷花类,日景烟花,吐珠类,造型玩具类,玩具烟花类,线香类,组合类,组合烟花,组合烟花类,组合盆花类,鞭炮类,火箭类,旋转类,升空类,旋转升空类,冷光类,烟雾类,摩擦类,小礼花类,礼花弹类,架子烟类,引火线,黑火药,烟火药,氯酸钾,精品礼品箱类,彩箱烟花类,单个爆竹类,玩具类,同类组合烟花) type **/ + @NotBlank(message = "类型不能为空") + private String type; + @TableField(value = "secondarytype") + private String secondaryType; + + /** 产品等级(ABCD级) level **/ + @NotBlank(message = "产品等级不能为空") + private String level; + + /** 生产日期 productDate **/ + @NotNull(message = "生产日期不能为空") + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") + @TableField(value = "productdate") + private Date productDate; + + /** 箱数(正整数) boxNumber **/ + @NotNull(message = "箱数不能为空") + @TableField(value = "boxnumber") + private Integer boxNumber; + + /** 包装方式 packing **/ + private String packing; + + /** 删除标记(0:未删除,1:删除) isDel **/ + @TableField(value = "isdel") + private Byte isDel; + + /** 创建人 createdBy **/ + @TableField(value = "createdby") + private String createdBy; + + /** 修改人 modifiedBy **/ + @TableField(value = "modifiedby") + private String modifiedBy; + + /** 创建时间 createdDate **/ + @TableField(value = "createddate") + private Date createdDate; + + /** 修改时间 modifiedDate **/ + @TableField(value = "modifieddate") + private Date modifiedDate; + + /** 企业单位编号 companyNumber **/ + @TableField(value = "companynumber") + private String companyNumber; + + @TableField(value = "isold") + private Byte isOld; + + /** id **/ + public Long getId() { + return id; + } + + /** id **/ + public void setId(Long id) { + this.id = id; + } + + /** 产品名(限制长度255) name **/ + public String getName() { + return name; + } + + /** 产品名(限制长度255) name **/ + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + /** 流向码(十位) directionCode **/ + public String getDirectionCode() { + return directionCode; + } + + /** 流向码(十位) directionCode **/ + public void setDirectionCode(String directionCode) { + this.directionCode = directionCode == null ? null : directionCode.trim(); + } + + /** 进价 purchasePrice **/ + public BigDecimal getPurchasePrice() { + return purchasePrice; + } + + /** 进价 purchasePrice **/ + public void setPurchasePrice(BigDecimal purchasePrice) { + this.purchasePrice = purchasePrice; + } + + /** 售价 salePrice **/ + public BigDecimal getSalePrice() { + return salePrice; + } + + /** 售价 salePrice **/ + public void setSalePrice(BigDecimal salePrice) { + this.salePrice = salePrice; + } + + /** 生产厂家 manufacturer **/ + public String getManufacturer() { + return manufacturer; + } + + /** 生产厂家 manufacturer **/ + public void setManufacturer(String manufacturer) { + this.manufacturer = manufacturer == null ? null : manufacturer.trim(); + } + + /** 规格(一般为2位字母数字组合) specification **/ + public String getSpecification() { + return specification; + } + + /** 规格(一般为2位字母数字组合) specification **/ + public void setSpecification(String specification) { + this.specification = specification == null ? null : specification.trim(); + } + + /** 含药量(一般为数字,部分含有单位) explosiveContent **/ + public BigDecimal getExplosiveContent() { + return explosiveContent; + } + + /** 含药量(一般为数字,部分含有单位) explosiveContent **/ + public void setExplosiveContent(BigDecimal explosiveContent) { + this.explosiveContent = explosiveContent; + } + + /** (烟花爆竹)类型(爆竹类,单个爆竹类,喷花类,日景烟花,吐珠类,造型玩具类,玩具烟花类,线香类,组合类,组合烟花,组合烟花类,组合盆花类,鞭炮类,火箭类,旋转类,升空类,旋转升空类,冷光类,烟雾类,摩擦类,小礼花类,礼花弹类,架子烟类,引火线,黑火药,烟火药,氯酸钾,精品礼品箱类,彩箱烟花类,单个爆竹类,玩具类,同类组合烟花) type **/ + public String getType() { + return type; + } + + /** (烟花爆竹)类型(爆竹类,单个爆竹类,喷花类,日景烟花,吐珠类,造型玩具类,玩具烟花类,线香类,组合类,组合烟花,组合烟花类,组合盆花类,鞭炮类,火箭类,旋转类,升空类,旋转升空类,冷光类,烟雾类,摩擦类,小礼花类,礼花弹类,架子烟类,引火线,黑火药,烟火药,氯酸钾,精品礼品箱类,彩箱烟花类,单个爆竹类,玩具类,同类组合烟花) type **/ + public void setType(String type) { + this.type = type == null ? null : type.trim(); + } + + public String getSecondaryType() { + return secondaryType; + } + + public void setSecondaryType(String secondaryType) { + this.secondaryType = secondaryType; + } + + /** 产品等级(ABCD级) level **/ + public String getLevel() { + return level; + } + + /** 产品等级(ABCD级) level **/ + public void setLevel(String level) { + this.level = level == null ? null : level.trim(); + } + + /** 生产日期 productDate **/ + public Date getProductDate() { + return productDate; + } + + /** 生产日期 productDate **/ + public void setProductDate(Date productDate) { + this.productDate = productDate; + } + + /** 箱数(正整数) boxNumber **/ + public Integer getBoxNumber() { + return boxNumber; + } + + /** 箱数(正整数) boxNumber **/ + public void setBoxNumber(Integer boxNumber) { + this.boxNumber = boxNumber; + } + + /** 包装方式 packing **/ + public String getPacking() { + return packing; + } + + /** 包装方式 packing **/ + public void setPacking(String packing) { + this.packing = packing == null ? null : packing.trim(); + } + + public Byte getIsDel() { + return isDel; + } + + public void setIsDel(Byte isDel) { + this.isDel = isDel; + } + + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy; + } + + public String getModifiedBy() { + return modifiedBy; + } + + public void setModifiedBy(String modifiedBy) { + this.modifiedBy = modifiedBy; + } + + public Date getCreatedDate() { + return createdDate; + } + + public void setCreatedDate(Date createdDate) { + this.createdDate = createdDate; + } + + public Date getModifiedDate() { + return modifiedDate; + } + + public void setModifiedDate(Date modifiedDate) { + this.modifiedDate = modifiedDate; + } + + public String getCompanyNumber() { + return companyNumber; + } + + public void setCompanyNumber(String companyNumber) { + this.companyNumber = companyNumber; + } + + public Byte getIsOld() { + return isOld; + } + + public void setIsOld(Byte isOld) { + this.isOld = isOld; + } +} -- Gitblit v1.9.2