package com.cyksj.model.views;

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

/*
 *项目名: netflix
 *文件名: HomeManagementAvailableGoodsView
 *创建者: JavaZou
 *创建时间:2023/8/17 18:23
 */
@Getter
@Setter
@SearchBean(tables = "goods_don g left join (select * from home_management_config where :type: deleted is true) hc on hc.goods_id = g.id" +
		" 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 and hc.id is null")
public class HomeManagementAvailableGoodsView {
	@DbField("g.id")
	private Long goodsId;

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

	@DbField("g.type")
	private Long goodsType;

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

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