package cn.iocoder.yudao.module.payment.entity;

import cn.iocoder.yudao.annotation.Excel;
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * 订单详细信息对象 order_info_detail
 *
 * @author zcy
 * @date 2023-09-14
 */
@Data
public class OrderInfoDetail extends TenantBaseDO
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 订单主键 */
    @Excel(name = "订单主键")
    private Long orderId;

    /** 事情内容 */
    @Excel(name = "事情内容")
    private String detailInfo;

    /** 时间记录 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间记录", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    /** 金额记录 */
    @Excel(name = "金额记录")
    private Long recordMoney;

    /** 0收入1支出 */
    @Excel(name = "0收入1支出")
    private String recordType;

    /** 部门主键 */
    @Excel(name = "部门主键")
    private Long deptId;
    public OrderInfoDetail(){

    }
    public OrderInfoDetail(Long orderId, String detailInfo, Date recordTime, Long recordMoney, String recordType){
        this.orderId = orderId;
        this.detailInfo = detailInfo;
        this.recordTime = recordTime;
        this.recordMoney = recordMoney;
        this.recordType = recordType;
    }

}
