package com.cyksj.model.views;

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

/**
 * 项目名: yhlxj
 * 文件名: BusinessDistributeSkuRateView
 * 创建者: JavaZou
 * 创建时间:2023/11/14 15:06
 */
@Getter
@Setter
@SearchBean(tables = "goods_don g left join goods_don_sku sku on sku.goods_id = g.id" +
		" left join business_distribute_default_sku_rate_config bdc on bdc.sku_id = sku.id",
		where = "g.deleted is true and g.status is true and g.is_distribute is true and g.is_sku_distribute is true and sku.status is true",
		orderBy = "g.id")
public class BusinessDistributeSkuRateView {

	@DbField("bdc.id")
	private Long id;

	@DbField("g.id")
	private Long goodsId;

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

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

	@DbField("sku.id")
	private Long skuId;

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

	@DbField("sku.is_mirror")
	private Boolean isMirror;

	@DbField("bdc.rate")
	private Integer rate;

	@DbField("bdc.second_rate")
	private Integer secondRate;
}
