添加商品分组排序方式字段
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
package cn.ysk.cashier.pojo.product;
|
package cn.ysk.cashier.pojo.product;
|
||||||
|
|
||||||
import lombok.Data;
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
|
||||||
import cn.hutool.core.bean.copier.CopyOptions;
|
import cn.hutool.core.bean.copier.CopyOptions;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
import javax.persistence.*;
|
import javax.persistence.*;
|
||||||
import javax.validation.constraints.*;
|
import javax.validation.constraints.NotBlank;
|
||||||
|
import javax.validation.constraints.NotNull;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -55,6 +57,10 @@ public class TbProductGroup implements Serializable {
|
|||||||
@ApiModelProperty(value = "style")
|
@ApiModelProperty(value = "style")
|
||||||
private String style;
|
private String style;
|
||||||
|
|
||||||
|
@Column(name = "`sort_mode`")
|
||||||
|
@ApiModelProperty(value = "排序方式,default-默认,price-价格从高到低,sales-volume-销量由高到低")
|
||||||
|
private Integer sort_mode;
|
||||||
|
|
||||||
@Column(name = "`sort`")
|
@Column(name = "`sort`")
|
||||||
@ApiModelProperty(value = "排序")
|
@ApiModelProperty(value = "排序")
|
||||||
private Integer sort;
|
private Integer sort;
|
||||||
|
|||||||
Reference in New Issue
Block a user