package org.jeecg.modules.system.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("nm_profit_sharing_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description = "分账记录表")
public class AppProfitSharingInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "id")
    private String id;

    /**
     * 分账记录ID
     */
    @Schema(description = "分账记录ID")
    private String profitSharingRecordsId;

    /**
     * 订单ID
     */
    @Schema(description = "订单ID")
    private String orderId;

    /**
     * 分账接收方所属组织
     */
    @Schema(description = "分账接收方所属组织")
    private String orgCode;

    /**
     * 分账接收方所属组织
     */
    @Schema(description = "商户号")
    private String mchId;

    /**
     * 分账接收方所属组织
     */
    @Schema(description = "商户全称")
    private String mchName;

    /**
     * 账户类型（1-出资方 2-接收方）
     */
    private Integer type;

    /**
     * 分账比例
     */
    @Schema(description = "分账比例")
    private BigDecimal ratio;

    /**
     * 分账金额(分)
     */
    @Schema(description = "分账金额(分)")
    private Integer preAmount;
    private Integer cumulative;

    /**
     * 实际分账金额(分)
     */
    @Schema(description = "实际分账金额(分)")
    private Integer amount;

    /**
     * 分账状态
     */
    @Schema(description = "分账状态")
    private String status;

    /**
     * 保险金额
     */
    private Integer insureAmount;

    /**
     * 分账结果描述
     */
    @Schema(description = "分账结果描述")
    private String description;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @Schema(description = "更新时间")
    private Date updateTime;

    /**
     * 逻辑删除标识(0-正常,1-已删除)
     */
    @Schema(description = "逻辑删除标识(0-正常,1-已删除)")
    private Integer delFlag;
}
