package com.cool.store.vo;

import com.cool.store.dto.openPreparation.UserNameDTO;
import com.cool.store.entity.OpeningOperationPlanDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**
 * @Auther: WangShuo
 * @Date: 2024/04/22/下午7:58
 * @Version 1.0
 * @注释:
 */
@Data
public class OpeningOperationPlanVO {

    @ApiModelProperty("门店name")
    private String shopName;
    @ApiModelProperty("调研结果")
    private String surveyResult;

    @ApiModelProperty("调研结果url")
    private String surveyResultUrl;

    @ApiModelProperty("活动主题")
    private String activityTheme;

    @ApiModelProperty("活动主题url")
    private String activityThemeUrl;

    @ApiModelProperty("筹备人员name")
    private List<UserNameDTO> preparationUsers;

    @ApiModelProperty("是否完成排车路线")
    private Byte routeCompleted;

    @ApiModelProperty("提交时间")
    private Date submissionTime;

    @ApiModelProperty("提交人")
    private String submittedUserId;
    @ApiModelProperty("提交人名字")
    private String submittedUserName;

    @ApiModelProperty("通过原因")
    private String passReason;

    @ApiModelProperty("审核结果,0待审核，1通过，2拒绝")
    private Integer resultType;

    @ApiModelProperty("审批人")
    private String approver;
    @ApiModelProperty("提交人")
    private String submiter;

    public OpeningOperationPlanVO() {
    }

    public OpeningOperationPlanVO(OpeningOperationPlanDO openingOperationPlanDO) {

        this.resultType = openingOperationPlanDO.getResultType();
        this.submittedUserId = openingOperationPlanDO.getSubmittedUserId();
        this.submissionTime = openingOperationPlanDO.getSubmissionTime();
        this.routeCompleted = openingOperationPlanDO.getRouteCompleted();
        this.activityThemeUrl = openingOperationPlanDO.getActivityThemeUrl();
        this.surveyResultUrl = openingOperationPlanDO.getSurveyResultUrl();
        this.activityTheme = openingOperationPlanDO.getActivityTheme();
        this.surveyResult = openingOperationPlanDO.getSurveyResult();
    }
}
