package com.cool.store.vo.closeup;

import com.cool.store.enums.closeup.CloseUpStatusEnum;
import com.cool.store.enums.master.BrandTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * <p>
 * 歇业申请单简单列表VO
 * </p>
 *
 * @author wangff
 * @since 2026/4/9
 */
@Data
public class CloseUpApplyFormSimpleVO {
    private Long id;

    @ApiModelProperty("审批id")
    private Long auditId;

    @ApiModelProperty("门店id")
    private String storeId;
    
    @ApiModelProperty("门店名称")
    private String storeName;

    @ApiModelProperty("门店编码")
    private String storeNum;

    @ApiModelProperty("所属品牌")
    private Integer joinBrand;
    
    @ApiModelProperty("所属品牌名称")
    private String joinBrandName;

    @ApiModelProperty("申请单号")
    private String applyNo;

    @ApiModelProperty("歇业申请单号")
    private String closeUpApplyNo;

    @ApiModelProperty("线索id")
    private Long lineId;
    
    @ApiModelProperty("申请人手机号")
    private String applyMobile;

    @ApiModelProperty("申请人名称")
    private String applyName;
    
    @ApiModelProperty("申请人角色")
    private String applyRoleName;

    @ApiModelProperty("状态，1-审批中 5-审批拒绝 10-审批通过 15-申请营业中 20-申请营业审批拒绝 25-申请营业审批通过")
    private Integer status;

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

    @ApiModelProperty("计划歇业日期")
    private Date planCloseDate;

    @ApiModelProperty("实际歇业日期")
    private Date actualCloseDate;

    @ApiModelProperty("计划开业日期")
    private Date planOpenDate;

    @ApiModelProperty("实际开业日期")
    private Date actualOpenDate;

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

    @ApiModelProperty(value = "源申请单id", hidden = true)
    private Long sourceApplyId;

    public String getStatusName() {
        return CloseUpStatusEnum.getDesc(status);
    }

    public String getJoinBrandName() {
        return BrandTypeEnum.getDescByCode(joinBrand);
    }
}
