package com.brilliance.isc.bo.lc;

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;

/**
 * 减额修改查询列表bo
 *
 
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class DecstmBo {

    /**
     * 修改次数
     */
    private int amenbr;

    /**
     * 业务编号
     */
    private String ownref;

    /**
     * 币种
     */
    private String engcur;

    /**
     * 总修改金额
     */
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal engamt = Decimals.ZERO_SCALE2;

    /**
     * 修改日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date amedat;

    /**
     * 附加金额修改金额
     */
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal chgAddAmt = Decimals.ZERO_SCALE2;

    /**
     * engamt + chgAddAmt
     */
    @JsonSerialize(using = BigDecimalSerialize.class)
    private BigDecimal chgAmt = Decimals.ZERO_SCALE2;

    /**
     * trninr
     */
    private String trninr;

    /**
     * 标记 D/I
     */
    private String flg;

    /**
     * 修改后有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expdat;

    /**
     * 实际修改金额
     */
    private BigDecimal actameamt = Decimals.ZERO_SCALE2;
}
