package com.cyksj.model.views;

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

/*
 *项目名: netflix
 *文件名: GoodsDonCategoryGoodsView
 *创建者: JavaZou
 *创建时间:2023/8/18 11:11
 */
@Getter
@Setter
@SearchBean(tables = "goods_don g left join goods_don_category_relate gcr on gcr.goods_id = g.id" +
		" left join goods_don_category gc on gc.id = gcr.category",
		where = "g.deleted is true")
public class GoodsDonCategoryGoodsView {

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

	@DbField("gc.name")
	private String categoryName;

	@DbField("gcr.category")
	private Long category;

	@DbField("gcr.id")
	private Long relateId;

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

	/**
	 * 前端组件使用
	 */
	@DbField("g.title")
	private String name;

	@DbField("g.status")
	private Boolean status;

	@DbIgnore
	private Integer click;

	/**
	 * pc平台点击数
	 */
	@DbIgnore
	private Integer pcClick = 0;

	/**
	 * h5平台点击数
	 */
	@DbIgnore
	private Integer h5Click = 0;

	/**
	 * h5推荐平台点击数
	 */
	@DbIgnore
	private Integer h5TjClick = 0;

	@DbField("gcr.sorted")
	private Integer sorted;
}
