package com.dk.mdm.model.pojo.mac;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.infrastructure.handler.*;
import com.dk.common.model.pojo.PageInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 *  账务冲抵明细
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ExportTitle("账务冲抵明细")
@TableName(value = "t_mac_rec_pay_handle_item", autoResultMap = true, schema = "dkic_b")
@ApiModel(value="实体类：账务冲抵明细", description="表名：t_mac_rec_pay_handle_item")
public class RecPayHandleItem extends PageInfo<RecPayHandleItem> implements Serializable {

    /*
     * 数据库字段
     */

    /**
     * 明细ID
     */
//    @TableId(value = "item_id", type = IdType.AUTO)
    @ApiModelProperty(value = "明细ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String itemId;


    /**
     * 收付款单ID
     */
    @Excel(name = "收付款单ID")
    @ApiModelProperty(value = "收付款单ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String rpId;


    /**
     * 账款明细ID
     */
    @Excel(name = "账款明细ID")
    @ApiModelProperty(value = "账款明细ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String accItemId;


    /**
     * 应收冲抵金额
     */
    @Excel(name = "应收冲抵金额")
    @ApiModelProperty(value = "应收冲抵金额")
    private BigDecimal amtReceivableHandle;


    /**
     * 应付冲抵金额
     */
    @Excel(name = "应付冲抵金额")
    @ApiModelProperty(value = "应付冲抵金额")
    private BigDecimal amtPayableHandle;


    /**
     * 优惠金额
     */
    @Excel(name = "优惠金额")
    @ApiModelProperty(value = "优惠金额")
    private BigDecimal amtWaive;


    /**
     * 还款日期
     */
    @Excel(name = "还款日期")
    @ApiModelProperty(value = "还款日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDate accDate;


    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remarks;


    /**
     * 有效标识 (1：正常 0：停用)
     */
    @Excel(name = "有效标识 (1：正常 0：停用)")
    @ApiModelProperty(value = "有效标识 (1：正常 0：停用)")
    private Boolean flgValid;


    /**
     * 企业ID
     */
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "企业ID")
    @ApiModelProperty(value = "企业ID")
    private Integer cpId;

    private static final long serialVersionUID = 1L;

}
