package com.cyksj.model.views;

import com.cyksj.model.request.corp.Attachments;
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.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 项目名: yhlxj
 * 文件名: CorpFollowActiveCodeView
 * 创建者: JavaZou
 * 创建时间:2023/10/10 10:22
 */
@Getter
@Setter
@SearchBean(tables = "corp_follow_active_code cfa",
		where = "cfa.deleted is true")
public class CorpFollowActiveCodeView {

	@DbField("cfa.id")
	private Long id;

	@DbField("cfa.name")
	private String name;

	/**
	 * 客服
	 */
	@DbField("cfa.follow_str")
	private String followStr;

	@DbIgnore
	private List<Integer> userIndxList;

	/**
	 * 欢迎语内容 文本、附件
	 */
	@DbField("cfa.text")
	private String text;

	@DbIgnore
	private List<Attachments> attachments;

	/**
	 * 附件字符串
	 */
	@DbField("cfa.attachments_str")
	private String attachmentsStr;

	/**
	 * 活码
	 */
	@DbField("cfa.code_str")
	private String codeStr;


	/**
	 * 客户标签
	 */
	@DbField("cfa.mark_tag")
	private String markTag;

	/**
	 * 是否值班
	 */
	@DbField("cfa.is_duty")
	private Boolean isDuty;

	/**
	 * 创建者
	 */
	@DbField("cfa.operator")
	private String operator;

	/**
	 * 优惠券名
	 */
	@DbIgnore
	private String couponName;

	/**
	 * 用户数
	 */
	@DbIgnore
	private Integer numOfUser;

	/**
	 * 订单数
	 */
	@DbIgnore
	private Integer orderNum;

	@DbIgnore
	private Integer clickNum;

	@DbIgnore
	private BigDecimal orderMoney = BigDecimal.ZERO;

	@DbField("cfa.msg_id")
	private Long msgId;

	@DbIgnore
	private String msgName;

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