package com.yuchen.saas.park.api.vo.property;

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

import java.util.List;

/**
 * @Author 蔡文强
 * @Date 2023/7/31 11:01
 * @Description 房产业主导入结果返回数据
 */
@Data
public class PropertyHouseOwnerImportResVo {

    @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;
    }
}
