package com.starry.admin.modules.clerk.module.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * @author admin
 * @since 2024/6/3 下午10:08
 **/
@Data
public class PlayClerkWagesInfoReturnVo {

    /**
     * UUID
     */
    private String id;

    /**
     * 租户ID
     */
    private String tenantId;

    /**
     * 店员ID
     */
    private String clerkId;

    /**
     * 店员昵称
     */
    private String clerkNickname;

    /**
     * 是否为往期统计(1:是;0:不是)
     **/
    private String historicalStatistics;

    /**
     * 统计序号
     */
    private Long serialNumber;

    /**
     * 排行序号
     */
    private Long rankingIndex;

    /**
     * 开始统计时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate startCountDate;

    /**
     * 结束统计时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate endCountDate;

    /**
     * 结算时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime settlementDate;

    /**
     * 订单总数
     */
    private Integer orderNumber;

    /**
     * 订单金额
     */
    private BigDecimal finalAmount;

    /**
     * 续单数
     */
    private Integer orderContinueNumber;

    /**
     * 续单金额
     */
    private BigDecimal orderContinueMoney;

    /**
     * 超时未接单数
     */
    private Integer ordersExpiredNumber;

    /**
     * 店员收入
     */
    private BigDecimal estimatedRevenue = BigDecimal.ZERO;

}
