package com.brilliance.isc.bo.bopdecbo;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.mda.support.jakson.serialize.BigDecimalSerializeRate;
import com.brilliance.mda.support.jakson.serialize.DecimalLength;
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;

/**
 *TABLE:dba:境内收入申报单-基础信息
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Dbd extends AbstractCommonVo {
    //Internal Unique ID
    private String inr ;
    //�'时申报流�'号
    private String tmpref ;
    //Initial Entity Code
    private String ownextkey ;
    //操作类型
    private String actiontype ;
    //修改/删除原因
    private String actiondesc ;
    //申报号码
    private String rptno ;
    //收款人类型
    private String custype ;
    //个人身份证件号码
    private String idcode ;
    //主体标识码
    private String custcod ;
    //收款人名称
    private String custnm ;
    //付款人名称
    private String oppuser ;
    //收入款币种
    private String txccy ;
    //收入款金额
//    @JsonSerialize(using = BigDecimalSerializeRate.class)
//    @DecimalLength(2)
    private BigDecimal txamt  = Decimals.ZERO_SCALE0;
    //结汇汇率
    @JsonSerialize(using = BigDecimalSerializeRate.class)
    @DecimalLength(8)
    private BigDecimal exrate  = Decimals.ZERO_SCALE8;
    //结汇金额
//    @JsonSerialize(using = BigDecimalSerializeRate.class)
//    @DecimalLength(2)
    private BigDecimal lcyamt  = Decimals.ZERO_SCALE0;
    //人民币帐号/银行卡号
    private String lcyacc ;
    //现汇金额
//    @JsonSerialize(using = BigDecimalSerializeRate.class)
//    @DecimalLength(2)
    private BigDecimal fcyamt  = Decimals.ZERO_SCALE0;
    //外汇帐号/银行卡号
    private String fcyacc ;
    //其它金额
//    @JsonSerialize(using = BigDecimalSerializeRate.class)
//    @DecimalLength(2)
    private BigDecimal othamt  = Decimals.ZERO_SCALE0;
    //其它帐号/银行卡号
    private String othacc ;
    //结算方式
    private String method ;
    //银行业务编号
    private String buscode ;
    //国内银行扣�'�币种
    private String inchargeccy ;
    //国内银行扣�'�金额
//    @JsonSerialize(using = BigDecimalSerializeRate.class)
//    @DecimalLength(2)
    private BigDecimal inchargeamt  = Decimals.ZERO_SCALE0;
    //【chk】
    private String checkinf ;
    //【object type】
    private String objtyp ;
    //【是否报送过】
    private String sndflg ;
    //【基础信息状态】
    private String bassta ;
    //【申报信息状态】
    private String dclsta ;
    //【核销信息状态】
    private String vrfsta ;
    //【所属机构】
    private String bchnam ;
    //【经办日期】
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date credat;
    //【数据来源】
    private String datsrc ;
    //【业务号码】
    private String extinf ;
    //检核状态
    private String exmandapp ;
    //【收付汇日期】
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date sfhdat;
    //员工号
    private String ownusr ;
}
