package com.sqx.modules.reconciliation.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 对账管理表
 * </p>
 *
 * @author ceshi
 * @since 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PlatformBill对象", description="对账管理表")
public class PlatformBill implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "bill_id", type = IdType.AUTO)
    private Integer billId;

    @ApiModelProperty(value = "账期")
    private String dayId;

    @ApiModelProperty(value = "关联用户id")
    private String userId;

    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    @ApiModelProperty(value = "对账类型 1商户 2骑手 0平台")
    private String type;

    @ApiModelProperty(value = "期初金额")
    private String startMoney;

    @ApiModelProperty(value = "总收入")
    private String revenue;

    @ApiModelProperty(value = "收入笔数")
    private String revenueCount;

    @ApiModelProperty(value = "商家提现金额")
    private String shopPayouts;

    @ApiModelProperty(value = "商家提现手续费")
    private String shopPayoutsRates;

    @ApiModelProperty(value = "商家提现笔数")
    private String shopPayoutsCount;

    @ApiModelProperty(value = "骑手提现")
    private String riderPayouts;

    @ApiModelProperty(value = "骑手提现手续费")
    private String riderPayoutsRates;

    @ApiModelProperty(value = "骑手提现笔数")
    private String riderPayoutsCount;

    @ApiModelProperty(value = "退款金额")
    private String refundMoney;

    @ApiModelProperty(value = "退款笔数")
    private String refundCount;

    @ApiModelProperty(value = "期末金额")
    private String endMoney;

    @ApiModelProperty(value = "平台抽成手续费")
    private String platformRates;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date updateTime;


}
