package com.cool.store.request;

import com.cool.store.dto.decoration.ThreeAcceptanceDTO;
import com.cool.store.entity.AssessmentDataDO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.ObjectUtils;
import org.apache.commons.lang3.StringUtils;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Auther: WangShuo
 * @Date: 2024/04/29/下午11:35
 * @Version 1.0
 * @注释:三方验收
 */
@Data
public class ThreeAcceptanceRequest {
    @NotNull
    private Long shopId;
    @ApiModelProperty("工程部验收")
    private ThreeAcceptanceDTO engineeringAcceptance;
    @ApiModelProperty("营运部验收")
    private ThreeAcceptanceDTO operationsAcceptance;
    @ApiModelProperty("加盟商验收")
    private ThreeAcceptanceDTO partnerAcceptance;
    @ApiModelProperty("快手号")
    private String ksAccount;
    @ApiModelProperty("核销手机号")
    private String verificationPhone;
    @ApiModelProperty("高德、百度定位截图")
    private String shopLocationScreenshots;
    @ApiModelProperty("门店门头照片")
    private String shopDoorwayPhoto;
    @ApiModelProperty("门店内景照片")
    private String shopInteriorPhoto;

    @ApiModelProperty("满意度0-低，1-中，2-高', 3-差，4-一般，5-好，6-非常好")
    private Integer satisfaction;

    @ApiModelProperty("网线安装 false-否 true-是")
    private Boolean isNetworkCable;

    @ApiModelProperty("验收单附件")
    private String acceptanceAttachment;

    @ApiModelProperty("后厨照片")
    private String backKitchenPhoto;
    @ApiModelProperty("完工交付单ID ")
    private String deliveryOrderId;
    @ApiModelProperty("增减项金额")
    private BigDecimal addReduceAmount;

    public Boolean miniCheck(){
        if (StringUtils.isAnyBlank(this.partnerAcceptance.toString())|| ObjectUtils.anyNull(this.satisfaction,this.isNetworkCable)){
            return false;
        }
        return true;
    }
}
