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;

import java.util.List;

/*
 *项目名: netflix
 *文件名: EquipmentUserDistributeViews
 *创建者: JavaZou
 *创建时间:2023/2/24 9:44
 */
@Getter
@Setter
@SearchBean(tables = "equipment_user_distribute_invite_record ec left join user u on u.id = ec.share_id",
		groupBy = "ec.share_id,u.nickname")
public class EquipmentUserDistributeViews {
	@DbField("ec.share_id")
	private Long shareId;

	@DbField("u.nickname")
	private String nickname;

	/**
	 * 分销记录数
	 */
	@DbIgnore
	private Integer recordNum;

	@DbIgnore
	private List<EquipmentBenefitsView> benefitsViews;
}
