/*
 * Copyright [2022] [https://www.xiaonuo.vip]
 *
 * Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：
 *
 * 1.请不要删除和修改根目录下的LICENSE文件。
 * 2.请不要删除和修改Snowy源码头部的版权声明。
 * 3.本项目代码可免费商业使用，商业使用请保留源码和相关描述文件的项目出处，作者声明等。
 * 4.分发源码时候，请注明软件出处 https://www.xiaonuo.vip
 * 5.不可二次分发开源参与同类竞品，如有想法可联系团队xiaonuobase@qq.com商议合作。
 * 6.若您的项目无法满足以上几点，需要更多功能代码，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
package com.unis.financialSupervision.modular.bizFsReserveGrainLoanInterest.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.unis.financialSupervision.modular.bizFsReserveGrainLoanInterestBreakdown.entity.BizFsReserveGrainLoanInterestBreakdown;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 储备粮贷款利息管理实体
 *
 * @author hjc
 * @date  2024/06/26 14:20
 **/
@Getter
@Setter
@TableName("biz_fs_reserve_grain_loan_interest")
public class BizFsReserveGrainLoanInterest {

    /** 唯一标识 */
    @TableId
    @ApiModelProperty(value = "唯一标识", position = 1)
    private String id;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间", position = 2)
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /** 创建用户 */
    @ApiModelProperty(value = "创建用户", position = 3)
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    /** 修改时间 */
    @ApiModelProperty(value = "修改时间", position = 4)
    @TableField(fill = FieldFill.UPDATE)
    private Date updateTime;

    /** 修改用户 */
    @ApiModelProperty(value = "修改用户", position = 5)
    @TableField(fill = FieldFill.UPDATE)
    private String updateUser;

    /** 企业名称 */
    @ApiModelProperty(value = "企业名称", position = 5)
    private String enterpriseName;

    /** 贷款单号 */
    @ApiModelProperty(value = "贷款单号", position = 6)
    private String loanNumber;

    /** 借款单位 */
    @ApiModelProperty(value = "借款单位", position = 7)
    private String borrowingUnit;

    /** 利息单号 */
    @ApiModelProperty(value = "利息单号", position = 8)
    private String interestNumber;

    /** 计息账户 */
    @ApiModelProperty(value = "计息账户", position = 9)
    private String interestBearingAccount;

    /** 计息开始日 */
    @ApiModelProperty(value = "计息开始日", position = 10)
    private Date interestStartDate;

    /** 计息结束日 */
    @ApiModelProperty(value = "计息结束日", position = 11)
    private Date interestEndDate;

    /** 计息天数 */
    @ApiModelProperty(value = "计息天数", position = 12)
    private Integer interestDays;

    /** 计息本金 */
    @ApiModelProperty(value = "计息本金", position = 13)
    private BigDecimal principalAmount;

    /** 期数 */
    @ApiModelProperty(value = "期数", position = 14)
    private Integer periodNumber;

    /** 利率 */
    @ApiModelProperty(value = "利率", position = 15)
    private BigDecimal interestRate;

    /** 应计利息 */
    @ApiModelProperty(value = "应计利息", position = 16)
    private BigDecimal accruedInterest;

    /** 实计利息 */
    @ApiModelProperty(value = "实计利息", position = 17)
    private BigDecimal actualInterest;

    /** 罚息率 */
    @ApiModelProperty(value = "罚息率", position = 18)
    private BigDecimal penaltyRate;

    /** 应计罚息 */
    @ApiModelProperty(value = "应计罚息", position = 19)
    private BigDecimal accruedPenaltyInterest;

    /** 实计罚息 */
    @ApiModelProperty(value = "实计罚息", position = 20)
    private BigDecimal actualPenaltyInterest;

    /** 逾期天数 */
    @ApiModelProperty(value = "逾期天数", position = 21)
    private Integer overdueDays;

    /** 币种 */
    @ApiModelProperty(value = "币种", position = 22)
    private String currency;

    /** 贷款金额 */
    @ApiModelProperty(value = "贷款金额", position = 23)
    private BigDecimal loanAmount;


    /** 利息分解 */
    @ApiModelProperty(value = "利息分解", position = 24)
    @TableField(exist = false)
    private List<BizFsReserveGrainLoanInterestBreakdown> breakdownList;
}
