package com.cool.store.vo.close.store;

import com.cool.store.enums.close.CloseStoreSubStageEnum;
import com.cool.store.enums.close.CloseStoreSubStageStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 闭店流程子阶段状态VO
 * </p>
 *
 * @author wangff
 * @since 2025/10/16
 */
@Data
public class CloseStoreSubStageStatusVO {
    @ApiModelProperty("闭店阶段")
    private Integer shopStage;

    @ApiModelProperty("闭店子阶段")
    private Integer shopSubStage;

    @ApiModelProperty("闭店子阶段名称")
    private String shopSubStageName;

    @ApiModelProperty("店铺阶段状态")
    private Integer shopSubStageStatus;

    @ApiModelProperty("阶段状态名称")
    private String shopSubStageStatusName;

    @ApiModelProperty("当前阶段是否结束 0未结束  1已结束")
    private Integer isTerminated;

    @ApiModelProperty("预估完成时间")
    private String planCompleteTime;

    @ApiModelProperty("实际完成时间")
    private String actualCompleteTime;

    public String getShopSubStageName() {
        return CloseStoreSubStageEnum.getSubStageNameBySubStage(shopSubStage);
    }

    public String getShopSubStageStatusName() {
        return CloseStoreSubStageStatusEnum.getStatusNameByStatus(shopSubStageStatus);
    }
}
