package com.yonge.cooleshow.biz.dal.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 分账子账户记录表
 * 2023-07-28 15:45:03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(" PaymentDivMemberRecord-分账子账户记录表")
@TableName("payment_div_member_record")
public class PaymentDivMemberRecord implements Serializable {

    @ApiModelProperty("主键") 

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

    @ApiModelProperty("机构ID") 
	@TableField(value = "tenant_id_")
    private Long tenantId;

    @ApiModelProperty("商户ID") 
	@TableField(value = "app_id_")
    private String appId;

    @ApiModelProperty("分账用户ID") 
	@TableField(value = "member_id_")
    private String memberId;

    @ApiModelProperty("订单编号") 
	@TableField(value = "order_no_")
    private String orderNo;

    @ApiModelProperty("分账订单号")
    @TableField(value = "div_order_no_")
    private String divOrderNo;

    @ApiModelProperty("三方流水号") 
	@TableField(value = "trans_no_")
    private String transNo;


    @ApiModelProperty("分账对象")
    @TableField(value = "div_member_json_")
    private String divMemberJson;

    @ApiModelProperty("分账金额") 
	@TableField(value = "amount_")
    private BigDecimal amount;

    @ApiModelProperty("机构到账标记") 
	@TableField(value = "tenant_enter_flag_")
    private Boolean tenantEnterFlag;

    @ApiModelProperty("分账状态 ING,SUCCESS,REFUND,CLOSE") 
	@TableField(value = "status_")
    private String status;

    @ApiModelProperty("手续费标识") 
	@TableField(value = "fee_flag_")
    private Boolean feeFlag;

    @ApiModelProperty("手续费") 
	@TableField(value = "fee_amt_")
    private BigDecimal feeAmt;

    @ApiModelProperty("创建时间") 
	@TableField(value = "create_time_")
    private Date createTime;

    @ApiModelProperty("更新时间") 
	@TableField(value = "update_time_")
    private Date updateTime;

}