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

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.infrastructure.handler.UuidTypeHandler;
import com.dk.common.model.pojo.PageInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 *  其他支出明细
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ExportTitle("其他支出明细")
@TableName(value = "t_mac_other_payable_item", autoResultMap = true)
@ApiModel(value="实体类：其他支出明细", description="表名：t_mac_other_payable_item")
public class OtherPayableItemResponse extends PageInfo<OtherPayableItemResponse> 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 payableId;


    /**
     * 支出类别 (【数据字典】)
     */
    @Excel(name = "支出类别 (【数据字典】)")
    @ApiModelProperty(value = "支出类别 (【数据字典】)")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String payableType;


    /**
     * 支出数量
     */
    @Excel(name = "支出数量")
    @ApiModelProperty(value = "支出数量")
    private BigDecimal qtyPayable;


    /**
     * 支出金额
     */
    @Excel(name = "支出金额")
    @ApiModelProperty(value = "支出金额")
    private BigDecimal amtPayable;


    /**
     * 备注
     */
    @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;

    @ApiModelProperty(value = "支出类别")
    private String payableTypeName;

    private static final long serialVersionUID = 1L;
}
