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.util.Date;

/**
 * 项目名: yhlxj
 * 文件名: ShoppingCartDonView
 * 创建者: JavaZou
 * 创建时间:2023/10/12 16:06
 */
@Getter
@Setter
@SearchBean(tables = "(select * from shopping_cart_don :uid:) sc left join goods_don g on g.id = sc.goods_id" +
		" left join goods_don_sku sku on sku.id = sc.sku_id :uid:")
public class ShoppingCartDonView {
	@DbField("sc.id")
	private Long shopCartId;

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

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

	@DbField("sc.sku_id")
	private Long skuId;

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

	@DbField("sc.num")
	private Integer num;

	@DbField("sc.created_time")
	private Date createdTime;
}
