package cn.pluss.platform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 收款单和付款信息关联表
 * </p>
 *
 * @author crystal
 * @since 2022-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@TableName("tb_pluss_jft_receipt_payment")
public class JftReceiptPayment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 收款单id
     */
    @TableField("rid")
    private Long rid;


    /**
     * 支付信息id
     */
    @TableField("pid")
    private Long pid;


    public JftReceiptPayment(Long rid, Long pid) {
        this.setRid(rid);
        this.setPid(pid);
    }
}