package com.brilliance.isc.bo.lg;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.bo.model.Setgid;
import com.brilliance.isc.common.transaction.vo.BaseTransactionVo;
import com.brilliance.isc.common.trnmod.vo.SwiaddVo;
import com.brilliance.isc.bo.model.Gidgrp;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class GitplbStoreBo extends BaseTransactionVo {
    private Gidgrp gidgrp;
    private Gidgrp oldgidgrp;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date chgdat;
    private  BigDecimal chgamt = Decimals.ZERO_SCALE2;
    private Setgid dftcomflg;


    @Override
    public void reset() {
        super.reset();
        if (gidgrp == null) {
            gidgrp = new Gidgrp();
        }
        gidgrp.reset();
        if (oldgidgrp == null) {
            oldgidgrp = new Gidgrp();
        }
        oldgidgrp.reset();
        if (dftcomflg == null) {
            dftcomflg = new Setgid();
        }
    }

}
