package org.jeecg.modules.stm.act.collection.vo;

 
import lombok.Data;
import org.apache.commons.lang.StringUtils;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.util.CollectionUtils;

import java.io.Serializable;
import java.util.List;

@Data
public class CaRelCollectionVo {
    @Excel(name = "集合编号", width = 15)
    
    private String collectionNo;
    /**控制活动编号*/
    @Excel(name = "控制活动编号", width = 15)
    
    private List<String> caNos;

    @Excel(name = "控制活动编号", width = 15)
    
    private List<Serializable> caIds;

    /**加入检查的类型**/
    private String type;


    public boolean valid(){
       return !StringUtils.isEmpty(collectionNo) && !CollectionUtils.isEmpty(caNos);
    }

    public boolean validIds(){
        return !StringUtils.isEmpty(collectionNo) && !CollectionUtils.isEmpty(caIds);
    }
}
