package com.ghy.payment.domain;

import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 订单超时扣款记录表
 *
 * @author HH 2022/8/4
 */
@Data
public class OrderTimeoutRecord {

    private Long id;

    /**
     * 子订单ID
     */
    private Long orderDetailId;
    private Long workerId;
    private Long deptId;

    private List<Long> orderDetailIds;

    /**
     * 超时时的订单状态
     */
    private Integer orderStatus;

    /**
     * 扣款状态 0未扣款 1已扣款
     * 这个字段用来判断超时罚金是否已经被冲账
     */
    private Integer fineStatus;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 扣款金额
     */
    private BigDecimal payMoney;

    public OrderTimeoutRecord() {
    }

    public OrderTimeoutRecord(Long orderDetailId, Long workerId, Long deptId, Integer orderStatus) {
        this.orderDetailId = orderDetailId;
        this.workerId = workerId;
        this.deptId = deptId;
        this.orderStatus = orderStatus;
    }
}
