peng
7 天以前 75f9783d5a70a5f037e3b34dc0e479069e63c0e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package cn.lili.modules.goods.entity.vos;
 
 
import cn.lili.modules.goods.entity.dto.GoodsParamsDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
/**
 * 商品关联参数的VO
 *
 * @author pikachu
 * @since 2020-02-26 23:24:13
 */
@Data
public class GoodsParamsVO extends GoodsParamsDTO {
 
    private static final long serialVersionUID = -4904700751774005326L;
    @ApiModelProperty("1 输入项   2 选择项")
    private Integer paramType;
    @ApiModelProperty(" 选择项的内容获取值,使用optionList")
    private String options;
    @ApiModelProperty("是否必填是  1    否   0")
    private Integer required;
    @ApiModelProperty("参数组id")
    private String groupId;
    @ApiModelProperty("是否可索引  1 可以   0不可以")
    private Integer isIndex;
 
    private String[] optionList;
 
    public void setOptionList(String[] optionList) {
        this.optionList = optionList;
    }
 
    public String[] getOptionList() {
        if (options != null) {
            return options.replaceAll("\r|\n", "").split(",");
        }
        return optionList;
    }
 
 
}