yh
This commit is contained in:
@@ -0,0 +1,252 @@
|
||||
package com.ruoyi.common.core.domain.entity;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.apache.commons.lang3.builder.ToStringBuilder;
|
||||
import org.apache.commons.lang3.builder.ToStringStyle;
|
||||
import com.ruoyi.common.annotation.Excel;
|
||||
import com.ruoyi.common.core.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* 商品对象 product
|
||||
*
|
||||
* @author ruoyi
|
||||
* @date 2025-10-27
|
||||
*/
|
||||
public class Product extends BaseEntity
|
||||
{
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 商品ID */
|
||||
private String id;
|
||||
|
||||
/** $column.columnComment */
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private Long productId;
|
||||
|
||||
/** 商品名称 */
|
||||
@Excel(name = "商品名称")
|
||||
private String name;
|
||||
|
||||
/** 商品描述 */
|
||||
@Excel(name = "商品描述")
|
||||
private String description;
|
||||
|
||||
/** 分类ID */
|
||||
@Excel(name = "分类ID")
|
||||
private Long categoryId;
|
||||
|
||||
/** 商品类型:1-包月,2-包季,3-半年 */
|
||||
@Excel(name = "商品类型:1-包月,2-包季,3-半年 ")
|
||||
private Integer productType;
|
||||
|
||||
/** 状态:0-下架,1-上架 */
|
||||
@Excel(name = "状态:0-下架,1-上架")
|
||||
private Integer status;
|
||||
|
||||
/** 原价(普通商品使用) */
|
||||
@Excel(name = "原价", readConverterExp = "普=通商品使用")
|
||||
private BigDecimal originalPrice;
|
||||
|
||||
/** 现价(普通商品使用) */
|
||||
@Excel(name = "现价", readConverterExp = "普=通商品使用")
|
||||
private BigDecimal currentPrice;
|
||||
|
||||
/** 包月时长(天) */
|
||||
@Excel(name = "包月时长", readConverterExp = "天=")
|
||||
private Long monthlyDuration;
|
||||
|
||||
/** 包季时长(天) */
|
||||
@Excel(name = "包季时长", readConverterExp = "天=")
|
||||
private Long quarterlyDuration;
|
||||
|
||||
/** 库存数量 */
|
||||
@Excel(name = "库存数量")
|
||||
private Long stock;
|
||||
|
||||
/** 销量 */
|
||||
@Excel(name = "销量")
|
||||
private Long sales;
|
||||
|
||||
/** 创建时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date createdAt;
|
||||
|
||||
/** 更新时间 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date updatedAt;
|
||||
|
||||
public void setId(String id)
|
||||
{
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getId()
|
||||
{
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setProductId(Long productId)
|
||||
{
|
||||
this.productId = productId;
|
||||
}
|
||||
|
||||
public Long getProductId()
|
||||
{
|
||||
return productId;
|
||||
}
|
||||
|
||||
public void setName(String name)
|
||||
{
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setDescription(String description)
|
||||
{
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDescription()
|
||||
{
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setCategoryId(Long categoryId)
|
||||
{
|
||||
this.categoryId = categoryId;
|
||||
}
|
||||
|
||||
public Long getCategoryId()
|
||||
{
|
||||
return categoryId;
|
||||
}
|
||||
|
||||
public void setProductType(Integer productType)
|
||||
{
|
||||
this.productType = productType;
|
||||
}
|
||||
|
||||
public Integer getProductType()
|
||||
{
|
||||
return productType;
|
||||
}
|
||||
|
||||
public void setStatus(Integer status)
|
||||
{
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public Integer getStatus()
|
||||
{
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setOriginalPrice(BigDecimal originalPrice)
|
||||
{
|
||||
this.originalPrice = originalPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getOriginalPrice()
|
||||
{
|
||||
return originalPrice;
|
||||
}
|
||||
|
||||
public void setCurrentPrice(BigDecimal currentPrice)
|
||||
{
|
||||
this.currentPrice = currentPrice;
|
||||
}
|
||||
|
||||
public BigDecimal getCurrentPrice()
|
||||
{
|
||||
return currentPrice;
|
||||
}
|
||||
|
||||
public void setMonthlyDuration(Long monthlyDuration)
|
||||
{
|
||||
this.monthlyDuration = monthlyDuration;
|
||||
}
|
||||
|
||||
public Long getMonthlyDuration()
|
||||
{
|
||||
return monthlyDuration;
|
||||
}
|
||||
|
||||
public void setQuarterlyDuration(Long quarterlyDuration)
|
||||
{
|
||||
this.quarterlyDuration = quarterlyDuration;
|
||||
}
|
||||
|
||||
public Long getQuarterlyDuration()
|
||||
{
|
||||
return quarterlyDuration;
|
||||
}
|
||||
|
||||
public void setStock(Long stock)
|
||||
{
|
||||
this.stock = stock;
|
||||
}
|
||||
|
||||
public Long getStock()
|
||||
{
|
||||
return stock;
|
||||
}
|
||||
|
||||
public void setSales(Long sales)
|
||||
{
|
||||
this.sales = sales;
|
||||
}
|
||||
|
||||
public Long getSales()
|
||||
{
|
||||
return sales;
|
||||
}
|
||||
|
||||
public void setCreatedAt(Date createdAt)
|
||||
{
|
||||
this.createdAt = createdAt;
|
||||
}
|
||||
|
||||
public Date getCreatedAt()
|
||||
{
|
||||
return createdAt;
|
||||
}
|
||||
|
||||
public void setUpdatedAt(Date updatedAt)
|
||||
{
|
||||
this.updatedAt = updatedAt;
|
||||
}
|
||||
|
||||
public Date getUpdatedAt()
|
||||
{
|
||||
return updatedAt;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("id", getId())
|
||||
.append("productId", getProductId())
|
||||
.append("name", getName())
|
||||
.append("description", getDescription())
|
||||
.append("categoryId", getCategoryId())
|
||||
.append("productType", getProductType())
|
||||
.append("status", getStatus())
|
||||
.append("originalPrice", getOriginalPrice())
|
||||
.append("currentPrice", getCurrentPrice())
|
||||
.append("monthlyDuration", getMonthlyDuration())
|
||||
.append("quarterlyDuration", getQuarterlyDuration())
|
||||
.append("stock", getStock())
|
||||
.append("sales", getSales())
|
||||
.append("createdAt", getCreatedAt())
|
||||
.append("updatedAt", getUpdatedAt())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
@@ -14,7 +14,7 @@ public class ShopUser {
|
||||
* 1 账号密码 2 验证码 3 一键登录
|
||||
*/
|
||||
private int method;
|
||||
@Getter
|
||||
|
||||
private String username;
|
||||
|
||||
private String password;
|
||||
|
||||
Reference in New Issue
Block a user