package shop.alien.entity.store.vo;

import com.baomidou.mybatisplus.annotation.TableField;
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;
import shop.alien.entity.store.LifeUserExpertOrder;

import java.math.BigDecimal;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="LifeUserExpertOrderVo", description="达人订单vo")
public class LifeUserExpertOrderVo extends LifeUserExpertOrder {

    @ApiModelProperty(value = "达人ID")
    private Integer expertId;

    @ApiModelProperty(value = "商家名称")
    private String storeName;

    @ApiModelProperty(value = "商家头像")
    private String storeImg;

    @ApiModelProperty(value = "实际播放量")
    private Integer actualPlayCount;

    @ApiModelProperty(value = "状态名称")
    private String statusName;

    @ApiModelProperty(value = "已售数量")
    private String soldCount;

    @ApiModelProperty(value = "实际GMV")
    @TableField("actual_gmv")
    private BigDecimal actualGmv;

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

    @ApiModelProperty(value = "到账总金额")
    private BigDecimal accountMoney;

    @ApiModelProperty(value = "待履约收益")
    private Integer pendingPerformanceIncome;

    @ApiModelProperty(value = "订单完成数")
    private Integer completedOrdersNumber;

    @ApiModelProperty(value = "未完成订单数")
    private Integer incompleteOrdersNumber;

    @ApiModelProperty(value = "进店浏览数")
    private Integer storeVisitViewCount;

    @ApiModelProperty(value = "套餐名称")
    private String name;

//    @ApiModelProperty(value = "申请首款按钮状态")
//    private String firstFundsButton;
//
//    @ApiModelProperty(value = "申请尾款按钮状态")
//    private String endFundsButton;

    @ApiModelProperty(value = "申请首款按钮")
    @TableField(value = "first_funds_button")
    private String firstFundsButton;

    @ApiModelProperty(value = "申请尾款按钮")
    @TableField(value = "end_funds_button")
    private String endFundsButton;

}
