package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/*
 *项目名: netflix
 *文件名: GoodsRecommendViews
 *创建者: JavaZou
 *创建时间:2023/7/26 13:37
 */
@Getter
@Setter
@SearchBean(tables = "goods_don g",
		where = "g.deleted is true and g.status is true :condition:")
public class GoodsRecommendViews {
	@DbField("g.id")
	private Long goodsId;

	@DbField("g.title")
	private String title;

	@DbField("g.logo")
	private String logo;

	@DbField("g.img")
	private String img;

	@DbField("g.tags")
	private String tags;

	@DbField("g.type")
	private Integer type;

	@DbField("g.min_months")
	private Integer months;

	@DbField("g.min_days")
	private Integer days;

	@DbField("g.min_price")
	private BigDecimal price;

	@JsonIgnore
	@DbField("g.virtual_sold")
	private Integer virtualSold;

	@DbField("g.specific_price")
	private BigDecimal specificPrice;

	@DbField("g.specific_goods_ids")
	private String specificGoodsIds;

	@DbIgnore
	private Integer sold;
}
