package com.brilliance.isc.common.rmbbop.vo;

import com.brilliance.isc.common.rmbbop.common.AbstractRmb;
import com.brilliance.isc.common.rmbbop.model.Tdagrp;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.EqualsAndHashCode;

import static com.brilliance.mda.runtime.mda.Constants.NULLSTR;

@EqualsAndHashCode(callSuper = true)
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Rmb2101 extends AbstractRmb {
    private String acp = NULLSTR;
    private Tdagrp recgrp;
    private String rmbbutflg = NULLSTR;
    private String isbus = NULLSTR;
    private String ownref = NULLSTR;

    @Override
    public String getObjtyp() {
        return "TDA";
    }

    @Override
    public void clear() {
        super.clear();
        recgrp = new Tdagrp();
        recgrp.reset();
    }

    @Override
    public void reset() {
        super.reset();
        if (recgrp == null) {
            recgrp = new Tdagrp();
        }
        recgrp.reset();
    }
}
