package com.cool.store.vo.tp.mini;

import com.cool.store.annotation.DictField;
import com.cool.store.enums.tp.TpFormStatusEnum;
import com.cool.store.enums.tp.TpFormTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * Mini申请单列表VO
 * </p>
 *
 * @author wangff
 * @since 2025/11/10
 */
@Data
public class MiniTpApplyListVO {
    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("单据类型，0加分单 1警告书 2处罚书")
    private Integer type;

    @ApiModelProperty("单据类型名称")
    private String typeName;

    @ApiModelProperty("项目名称")
    private String projectName;

    @ApiModelProperty("项目名称")
    @DictField
    private String projectNameName;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("分值")
    private BigDecimal score;

    @ApiModelProperty("金额")
    private BigDecimal amount;

    @ApiModelProperty("状态")
    private String status;

    @ApiModelProperty("状态名称")
    private String statusName;

    @ApiModelProperty("是否为草稿")
    private Integer isDraft;
    
    @ApiModelProperty("是否复议中")
    private Integer isAppeal;

    public String getTypeName() {
        return TpFormTypeEnum.getMsgByType(this.type);
    }

    public String getStatusName() {
        return TpFormStatusEnum.getMsgByStatus(this.status);
    }
}
