package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/*
 *项目名: netflix
 *文件名: GoodsDiscountPlusPurchaseRelationFrontView
 *创建者: JavaZou
 *创建时间:2023/7/19 14:08
 */
@Getter
@Setter
@SearchBean(tables = "goods_discount_plus_purchase_relation gpr left join goods_don g on g.id = gpr.dis_gid" +
		" left join goods_don_sku sku on sku.id = gpr.dis_sid",
		where = "g.deleted is true and g.status is true and sku.status is true")
public class GoodsDiscountPlusPurchaseRelationFrontView {
	@DbField("gpr.sku_id")
	private Long skuId;

	@DbField("gpr.dis_gid")
	private Long disGid;

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

	@DbField("sku.sub_title")
	private String subTitle;

	@DbField("sku.picture")
	private String picture;

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

	/**
	 * 匹配图
	 */
	@DbField("g.match_img")
	private String matchImg;

	/**
	 * 加购规格id
	 */
	@DbField("gpr.dis_sid")
	private Long disSid;

	@DbField("sku.spec_val")
	private String specVal;

	@DbField("sku.price")
	private BigDecimal oriPrice;

	@DbField("gpr.dis_price")
	private BigDecimal disPrice;
}
