package com.cyksj.model.views;


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

/**
 * 项目名: yhlxj
 * 文件名: GoodsDonSkuRateView
 * 创建者: JavaZou
 * 创建时间:2024/6/24 14:17
 */

@Getter
@Setter
@SearchBean(tables = "goods_don_sku sku inner join goods_don g on g.id = sku.goods_id" +
		" left join distribute_general_sku_rate sr on sr.sku_id = sku.id",
		where = "g.is_distribute is true and g.is_sku_distribute is true and g.type = 1 and g.status is true and g.deleted is true and sku.status is true",
		orderBy = "sku.goods_id asc")
public class GoodsDonSkuRateView {
	@DbField("sr.id")
	private Long id;

	@DbField("sku.goods_id")
	private Long goodsId;

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

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

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

	@DbField("sr.rate")
	private Integer rate;
}
