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;


/**
 * TABLE:irt:INV - Interest Rate Definition
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Ine {
        private String inr = NULLSTR;

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

        //关联表
        private String objtyp = NULLSTR;

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

        //父级表
        private String pnttyp = NULLSTR;

        //父级表inr
        private String pntinr = NULLSTR;

        //任意编号
        private String ineref = NULLSTR;

        //进口企业名称
        private String clinam = NULLSTR;

        //币种
        private String cur = NULLSTR;

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

        //对应报关单数量
        private  int cusnum;

        //类型
        private String typ = NULLSTR;

        //状态
        private String sta = NULLSTR;

        //发票类型
        private String dettyp = NULLSTR;

        //new datafield
        private String trninr = NULLSTR;

        //new datafield
        private String preinr = NULLSTR;

        //出运编号
        private String shipid = NULLSTR;

        //�'�任生效日期
        @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
        private Date lbteffdat = NULLDATE;
}