package com.brilliance.isc.vo.lg;


import com.brilliance.isc.bo.Spt;
import com.brilliance.isc.common.transaction.vo.BaseTransactionVo;
import com.brilliance.isc.common.trnmod.vo.SwiaddVo;
import com.brilliance.isc.common.vo.AddbcbVo;
import com.brilliance.isc.vo.model.Gcdgrp;
import com.brilliance.isc.vo.model.Gidgrp;
import com.brilliance.isc.vo.model.Gitp;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

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

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GitameStoreVo extends BaseTransactionVo {

    private Gidgrp gidgrp;

    private Gidgrp oldgidgrp;

    //与前端模型保持一致
    private GitamepVo gitamep;

    //与前端模型保持一致
    private SwiaddVo swiadd;

    //前端修改的字段
    private GitameInfoVo litameInfo;

    private AddbcbVo addbcb;

    private Spt spt;

    private Gcdgrp gcdgrp;

    private String gitapll2blk= NULLSTR;

    private String clmtxts20= NULLSTR;

    private int payday;

    private Gitp gitp;

    @Override
    public void reset() {
        if (gidgrp == null) {
            gidgrp = new Gidgrp();
        }
        //gidgrp.reset();
        if (oldgidgrp == null) {
            oldgidgrp = new Gidgrp();
        }
        //oldgidgrp.reset();
        if (gitamep == null) {
            gitamep = new GitamepVo();
        }
        gitamep.reset();
        if (swiadd == null) {
            swiadd = new SwiaddVo();
        }
        swiadd.reset();
        if (addbcb == null) {
            addbcb = new AddbcbVo();
        }
        if (spt == null) {
            spt = new Spt();
        }
        if (litameInfo == null) {
            litameInfo = new GitameInfoVo();
        }
        litameInfo.reset();
        if (gitp == null) {
            gitp = new Gitp();
        }
        gitp.reset();
    }
}
