package com.dk.mdm.model.vo.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.TimestampTypeHandler;
import com.dk.common.infrastructure.handler.UuidTypeHandler;
import com.dk.common.model.pojo.PageInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
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;
import java.time.LocalDateTime;

/**
 *  资金转账明细
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ExportTitle("资金转账明细")
@TableName(value = "t_mac_transfer_item", autoResultMap = true)
@ApiModel(value="实体类：资金转账明细", description="表名：t_mac_transfer_item")
public class MacTransferItemVO extends PageInfo<MacTransferItemVO> 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 trfId;


    /**
     * 转入账户
     */
    @Excel(name = "转入账户")
    @ApiModelProperty(value = "转入账户")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String trfInMac;


    /**
     * 转出账户
     */
    @Excel(name = "转出账户")
    @ApiModelProperty(value = "转出账户")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String trfOutMac;


    /**
     * 转账金额
     */
    @Excel(name = "转账金额")
    @ApiModelProperty(value = "转账金额")
    private BigDecimal amtTrf;


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


    /**
     * 制单员
     */
    @Excel(name = "制单员")
    @ApiModelProperty(value = "制单员")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String makeStaff;


    /**
     * 制单时间
     */
    @Excel(name = "制单时间")
    @ApiModelProperty(value = "制单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime makeTime;


    /**
     * 有效标识 (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;

}
