package com.brilliance.isc.bo;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.common.json.BigDecimalSerialize;
import com.brilliance.isc.common.vo.AbstractCommonVo;
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;


/**
 * TABLE:Fale01:对外金融资产负债-E01
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Fale01 extends AbstractCommonVo {

    //Internal Unique ID
    private String inr = NULLSTR;

    //申报主体代码
    private String objcode = NULLSTR;

    //原始币种
    private String e0101cur = NULLSTR;

    //交易代码
    private String e0101 = NULLSTR;

    //交易对方国家/地区
    private String e0102 = NULLSTR;

    //收入金额
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal e0103 = Decimals.ZERO_SCALE2;

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

    //科目号
    private String trmcod = NULLSTR;

    //部门标签
    private String deptyp = NULLSTR;

    //交易流水号
    private String trninr = NULLSTR;

    //接口状态
    private String sta = NULLSTR;

    //交易日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date credat = NULLDATE;


}

