package com.brilliance.isc.vo.model;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

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

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


/**
 * TABLE:gad:
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GadVo {


    //ID号
    private String inr = NULLSTR;

    //关联GID表
    private String gidinr = NULLSTR;

    //关联TRN表
    private String trninr = NULLSTR;

    //保函开立状态
    private String opnsta = NULLSTR;

    //保函修改状态
    private String amesta = NULLSTR;

    //保函撤销状态
    private String cansta = NULLSTR;

    //原金额
    private BigDecimal oldamt = Decimals.ZERO_SCALE2;

    //原效期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date olddat = NULLDATE;

    //reference
    private String ownref = NULLSTR;

    //错误信息
    private String errmsg = NULLSTR;

    //一体化模式
    private String ythmos = NULLSTR;
}