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

import com.brilliance.isc.common.rmbbop.common.AbstractRmb;
import com.brilliance.isc.common.rmbbop.model.Tdogrp;
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 Rmb2122 extends AbstractRmb {
    private Tdogrp recgrp;
    private String acp = NULLSTR;
    private String rmbbutflg = NULLSTR;
    private String ownref = NULLSTR;
    private String isbus = NULLSTR;

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

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

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