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
 * 文件名: CorpRenewFollowView
 * 创建者: JavaZou
 * 创建时间:2023/11/16 15:38
 */
@Getter
@Setter
@SearchBean(tables = "groups_relation_expiry_record gre inner join goods_don_sku sku on sku.id = gre.sku_id",
		where = ":nk:")
public class CorpRenewFollowView {

	@DbField("gre.user_id")
	private Long userId;

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

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

	@DbField("gre.goods_title")
	private String goodsTitle;

	@DbField("gre.relation_id")
	private Long relationId;

	@DbField("gre.start_time")
	private Date startTime;

	@DbField("gre.expiry_time")
	private Date expiryTime;

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

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

	@DbField("gre.is_re_buy")
	private Boolean isReBuy;

	@DbField("gre.re_buy_order_id")
	private Long reBuyOrderId;

	@DbField("gre.re_buy_time")
	private Date reBuyTime;

	@DbField("gre.re_buy_goods_id")
	private Long reBuyGoodsId;

	@DbField("gre.re_buy_goods_title")
	private String reBuyGoodsTitle;


	@DbField("gre.re_buy_sku_id")
	private Long reBuySkuId;

	@DbField("gre.re_buy_spec_val")
	private String reBuySpecVal;

	/**
	 * 分配时间
	 */
	@DbField("gre.assign_time")
	private Date assignTime;

	@DbField("gre.customer_service_id")
	private Long customerServiceId;

	/**
	 * 分配客服
	 */
	@DbField("gre.customer_service")
	private String customerService;

	/**
	 * 是否跟进
	 */
	@DbField("gre.is_follow")
	private Boolean isFollow;

	/**
	 * 到期状态
	 * 0已到期
	 */
	@DbField("gre.account_status")
	private Integer accountStatus;

	/**
	 * 客服id
	 */
	@DbField("gre.follow_id")
	private String followId;

	/**
	 * 注册环境
	 */
	@DbField("gre.register_env")
	private String registerEnv;

	@DbField("gre.contact")
	private String contact;

	@DbField("sku.months")
	private Integer months;
}
