|
@@ -0,0 +1,266 @@
|
|
|
+package com.ym.mec.biz.dal.entity;
|
|
|
+
|
|
|
+import io.swagger.annotations.ApiModelProperty;
|
|
|
+import org.apache.commons.lang3.builder.ToStringBuilder;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotBlank;
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 对应数据库表(live_goods):
|
|
|
+ */
|
|
|
+public class LiveGoods {
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "商品编号",required = false)
|
|
|
+ private Integer id;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "产品分类",required = false)
|
|
|
+ private Integer goodsCategoryId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "商品货号",required = false)
|
|
|
+ private String sn;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "商品名称",required = true)
|
|
|
+ @NotBlank(message = "商品名称不可为空")
|
|
|
+ private String name;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "品牌",required = false)
|
|
|
+ private String brand;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "规格",required = false)
|
|
|
+ private String specification;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "展示图片的地址",required = true)
|
|
|
+ @NotBlank(message = "图片地址不可为空")
|
|
|
+ private String image;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "库存",required = true)
|
|
|
+ @NotNull(message = "库存不可为空")
|
|
|
+ private Integer stockCount;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "总销量数",required = false)
|
|
|
+ private Integer sellCount = 0;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "现价",required = true)
|
|
|
+ @NotNull(message = "现价不可为空")
|
|
|
+ private java.math.BigDecimal currentPrice;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "原价",required = true)
|
|
|
+ @NotNull(message = "原价不可为空")
|
|
|
+ private java.math.BigDecimal originalPrice;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "页面简介",required = false)
|
|
|
+ private String brief;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "商品的详细描述",required = false)
|
|
|
+ private String desc;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "是否是新品(1,是 0,否)",required = false)
|
|
|
+ private Boolean newFlag = false;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "是否置顶(1,置顶 0,不置顶)",required = false)
|
|
|
+ private Boolean topFlag = false;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "状态(1,上下架 0,下架)",required = false)
|
|
|
+ private Boolean status = false;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "备注",required = false)
|
|
|
+ private String memo;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "发布时间",required = false)
|
|
|
+ private java.util.Date publishTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "创建时间",required = false)
|
|
|
+ private java.util.Date createTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "修改时间",required = false)
|
|
|
+ private java.util.Date updateTime;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "机构",required = false)
|
|
|
+ private Integer tenantId;
|
|
|
+
|
|
|
+ @ApiModelProperty(value = "附件商品列表编号(用逗号分开)",required = false)
|
|
|
+ private String complementGoodsIdList;
|
|
|
+
|
|
|
+ public Boolean getNewFlag() {
|
|
|
+ return newFlag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNewFlag(Boolean newFlag) {
|
|
|
+ this.newFlag = newFlag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Boolean getTopFlag() {
|
|
|
+ return topFlag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTopFlag(Boolean topFlag) {
|
|
|
+ this.topFlag = topFlag;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Boolean getStatus() {
|
|
|
+ return status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStatus(Boolean status) {
|
|
|
+ this.status = status;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(Integer id){
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getId(){
|
|
|
+ return this.id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setGoodsCategoryId(Integer goodsCategoryId){
|
|
|
+ this.goodsCategoryId = goodsCategoryId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getGoodsCategoryId(){
|
|
|
+ return this.goodsCategoryId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSn(String sn){
|
|
|
+ this.sn = sn;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSn(){
|
|
|
+ return this.sn;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setName(String name){
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getName(){
|
|
|
+ return this.name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBrand(String brand){
|
|
|
+ this.brand = brand;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBrand(){
|
|
|
+ return this.brand;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSpecification(String specification){
|
|
|
+ this.specification = specification;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSpecification(){
|
|
|
+ return this.specification;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setImage(String image){
|
|
|
+ this.image = image;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getImage(){
|
|
|
+ return this.image;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStockCount(Integer stockCount){
|
|
|
+ this.stockCount = stockCount;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getStockCount(){
|
|
|
+ return this.stockCount;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSellCount(Integer sellCount){
|
|
|
+ this.sellCount = sellCount;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getSellCount(){
|
|
|
+ return this.sellCount;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCurrentPrice(java.math.BigDecimal currentPrice){
|
|
|
+ this.currentPrice = currentPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public java.math.BigDecimal getCurrentPrice(){
|
|
|
+ return this.currentPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setOriginalPrice(java.math.BigDecimal originalPrice){
|
|
|
+ this.originalPrice = originalPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public java.math.BigDecimal getOriginalPrice(){
|
|
|
+ return this.originalPrice;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBrief(String brief){
|
|
|
+ this.brief = brief;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBrief(){
|
|
|
+ return this.brief;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setDesc(String desc){
|
|
|
+ this.desc = desc;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getDesc(){
|
|
|
+ return this.desc;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setMemo(String memo){
|
|
|
+ this.memo = memo;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getMemo(){
|
|
|
+ return this.memo;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPublishTime(java.util.Date publishTime){
|
|
|
+ this.publishTime = publishTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public java.util.Date getPublishTime(){
|
|
|
+ return this.publishTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setCreateTime(java.util.Date createTime){
|
|
|
+ this.createTime = createTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public java.util.Date getCreateTime(){
|
|
|
+ return this.createTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setUpdateTime(java.util.Date updateTime){
|
|
|
+ this.updateTime = updateTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public java.util.Date getUpdateTime(){
|
|
|
+ return this.updateTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setTenantId(Integer tenantId){
|
|
|
+ this.tenantId = tenantId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getTenantId(){
|
|
|
+ return this.tenantId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setComplementGoodsIdList(String complementGoodsIdList){
|
|
|
+ this.complementGoodsIdList = complementGoodsIdList;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getComplementGoodsIdList(){
|
|
|
+ return this.complementGoodsIdList;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public String toString() {
|
|
|
+ return ToStringBuilder.reflectionToString(this);
|
|
|
+ }
|
|
|
+
|
|
|
+}
|