package com.liquidnet.service.kylin.dao;

import lombok.Data;

import java.math.BigDecimal;

@Data
public class PerformanceAdminListDao {

    //演出数据
    private String performancesId;
    private String title;
    private String timeStart;
    private String timeEnd;
    private String sponsor;
    private Integer status;
    private Integer fieldAuditStatus;
    private String statusName;
    private String auditTime;
    private String timeSell;
    private String timeStop;
    private Integer auditStatus;
    private Integer totalGeneral;
    private Integer saleGeneral;
    private BigDecimal totalSalePrice;
    private Integer surplusGeneral;
    private Integer syncDamai;
    private String rejectTxt;
    private Integer sort;
    private String createdAt;

    public void setStatus(Integer status){
        this.status=status;
        switch (status){
            case 1:
                this.statusName="审核中";
                break;
            case 3:
                this.statusName="审核通过";
                break;
            case 4:
                this.statusName="审核拒绝";
                break;
            case 6:
                this.statusName="售卖中";
                break;
            case 7:
                this.statusName="已下架";
                break;
            case 8:
                this.statusName="售罄";
                break;
            case 9:
                this.statusName="未开始";
                break;
            case 10:
                this.statusName="已结束";
                break;
            default:
                this.statusName="其他";
                break;
        }
    }
}
