package com.yuchen.saas.parking.api.vo.carInfo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @Author yuanzhelin
 * @Date 2024/10/12 14:48
 * @Description TODO
 */
@Data
public class CarImportExcelResultVO {
    @ApiModelProperty(name = "importSize", value = "导入总条数")
    private Integer importSize;

    @ApiModelProperty(name = "successSize", value = "成功条数")
    private Integer successSize;

    @ApiModelProperty(name = "failSize", value = "失败条数")
    private Integer failSize;

    @ApiModelProperty(name = "msg", value = "失败消息")
    private List<String> msg;

    public Integer getSuccessSize(){
        return this.importSize-this.failSize;
    }
}
