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.math.BigDecimal;

/*
 *项目名: netflix
 *文件名: TaskView
 *创建者: JavaZou
 *创建时间:2022/12/27 15:35
 */
@Getter
@Setter
@SearchBean(tables = "task t left join task_type tt on tt.id = t.type_id",
where = "t.deleted is true")
public class TaskView {
	@DbField("t.id")
	private Long id;

	/**
	 * 类型id
	 */
	@DbField("tt.id")
	private Long typeId;

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

	@DbField("tt.name")
	private String typeName;

	@DbField("t.icon")
	private String icon;

	@DbField("t.description")
	private String description;

	@DbField("t.task_limit")
	private String taskLimit;

	@DbField("t.points")
	private Integer points;

	@DbField("t.picture")
	private String picture;

	@DbField("t.link")
	private String link;

	@DbField("t.balance")
	private BigDecimal balance;

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

	@DbField("t.coupon_id")
	private Long couponId;

	/**
	 * 邀请人数
	 */
	@DbField("t.invite_num")
	private Integer inviteNum;

	@DbField("t.sorted")
	private Integer sorted;

	/**
	 * 今天完成人数
	 */
	@DbIgnore
	private Integer todayCompleteNum;

	/**
	 * 累计完成人数
	 */
	@DbIgnore
	private Integer sumCompleteNum;

	/**
	 * 今日奖励积分
	 */
	@DbIgnore
	private Integer todayPoints;

	/**
	 * 累计奖励积分
	 */
	@DbIgnore
	private Integer sumPoints;

	/**
	 * 今日奖励余额
	 */
	@DbIgnore
	private BigDecimal todayBalance;

	/**
	 * 累计奖励余额
	 */
	@DbIgnore
	private BigDecimal sumBalance;

	/**
	 * 待审核数量
	 */
	@DbIgnore
	private Integer verifyNum;
}
