package com.brilliance.isc.bo;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.common.json.BigDecimalSerialize;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
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;

/**
 * @author : w42697
 * @version : 1.0
 * @ClassName : Lgo
 * @description : 融资性对外担保额度业务余额表
 * @date : 2024-05-13 16:53:41
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Lgo {
    private String inr = NULLSTR;

    private String objtyp = NULLSTR; //指向的业务表名

    private String objinr = NULLSTR; //指向的业务表主键

    private String extid = NULLSTR; //额度品种

    private String cur = NULLSTR; //额度币种

    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal amt  = Decimals.ZERO_SCALE3; //额度余额

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date matdat = NULLDATE; //业务到期日

    private String xrfcur = NULLSTR; //额度折算币种

    @JsonSerialize(using = BigDecimalSerialize.class)
    private  BigDecimal xrfamt  = Decimals.ZERO_SCALE3; //额度折算余额

    private String ownref = NULLSTR; //业务编号

    private String bchkeyinr = NULLSTR; //业务所属行主键

    private String ver = NULLSTR; //版本号

    private String ptyinr = NULLSTR; //额度关联的当事人PTY表主键

    private String rate = NULLSTR;

    private String status = NULLSTR;
}
