package com.bohuikeji.delivery.backstage.entity.bytedance;

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 com.bohuikeji.frame.module.admin.annotation.TableNewField;
import com.bohuikeji.frame.module.admin.annotation.TableShowField;
import com.bohuikeji.frame.module.admin.base.EntityBase;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@ApiModel(value="支付记录临时表", description="支付记录临时表")
@TableName("PayRecord")
public class PayRecord extends EntityBase {

    @ApiModelProperty(value="序号")
    @TableId(value = "id", type = IdType.AUTO)
    @TableShowField(value = "ID",id = true)
    private Integer id;

    @ApiModelProperty(value = "支付时间")
    @TableField("pay_time")
    @TableNewField
    @TableShowField(value = "支付时间")
    private LocalDateTime payTime;


    @ApiModelProperty(value = "商户号")
    @TableField(value = "seller_num")
    @TableShowField(value = "商户号")
    private Integer sellerNum;

    @ApiModelProperty(value = "用户open")
    @TableField(value = "open_id")
    @TableShowField(value = "用户open")
    private String openId;

    @ApiModelProperty(value = "订单号")
    @TableField(value = "pay_num")
    @TableShowField(value = "订单号")
    private Integer payNum;

    @ApiModelProperty(value = "平台订单号")
    @TableField(value = "order_num")
    @TableShowField(value = "平台订单号")
    private String orderNum;

    @ApiModelProperty(value = "渠道订单号")
    @TableField(value = "channel_num")
    @TableShowField(value = "渠道订单号")
    private String channelNum;

    @ApiModelProperty(value = "订单金额")
    @TableField(value = "pay_price")
    @TableShowField(value = "订单金额")
    private BigDecimal payPrice=new BigDecimal("0.00").setScale(2, BigDecimal.ROUND_DOWN);

    @ApiModelProperty(value = "支付方式")
    @TableField(value = "pay_method")
    @TableShowField(value = "支付方式")
    private String payMethod;

    @ApiModelProperty(value = "支付状态")
    @TableField(value = "pay_status")
    @TableShowField(value = "支付状态")
    private String payStatus;

    /*@ApiModelProperty(value = "开始-结束时间")
    @TableField("start_end_date")
    @TableQueryField()
    @TableShowField(value = "开始-结束时间")
    private LocalDate startEndDate;*/

}
