package com.brilliance.isc.bo.model;

import com.brilliance.isc.bo.Eaf;
import com.brilliance.isc.bo.Ear;
import com.brilliance.isc.common.cfamag.common.ICfaRecgrp;
import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Eafgrp extends AbstractCommonVo implements ICfaRecgrp<Eaf> {

    private Eaf bas;

    private List<Ear> dcl;


    @Override
    public void reset() {
        if(bas == null) {
            bas = new Eaf();
        }
        if(dcl == null) {
            dcl = new ArrayList<>();
        }
    }
}
