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.NULLSTR;


/**
* TABLE:cur:CUR - Currency
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Cus {

        private String inr = NULLSTR;

        //融资表主键
        private String fininr = NULLSTR;

        //发票号
        private String ineref = NULLSTR;

        //关联表
        private String objtyp = NULLSTR;

        //关联主键
        private String objinr = NULLSTR;

        //父表
        private String pnttyp = NULLSTR;

        //父表主键
        private String pntinr = NULLSTR;

        //报关单编号
        private String cusref = NULLSTR;

        //报关单币种
        private String cur = NULLSTR;

        //报关单占用金额
        @JsonSerialize(using = BigDecimalSerialize.class)
        private  BigDecimal amt  = Decimals.ZERO_SCALE2;

        //使用情况
        private String usesta = NULLSTR;

        //核验情况
        private String chksta = NULLSTR;

        //核验结果
        private String chkret = NULLSTR;

}