package com.czg.account.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 交班记录表
 *
 * @author Tankaikai tankaikai@aliyun.com
 * @since 1.0 2025-02-27
 */
@Data
@Table("tb_handover_record")
public class HandoverRecord implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;
    /**
     * 店铺 id
     */
    private Long shopId;
    /**
     * 店铺名称
     */
    private String shopName;
    /**
     * 登录时间
     */
    private LocalDateTime loginTime;
    /**
     * 交班时间
     */
    private LocalDateTime handoverTime;
    /**
     * 账户类型 merchant-商户 staff-员工
     */
    private String accountType;
    /**
     * 员工 id
     */
    private Long staffId;
    /**
     * 员工姓名
     */
    private String staffName;

    /**
     * 营业额
     */
    private BigDecimal turnover;
    /**
     * 订单额
     */
    private BigDecimal orderTurnover;

    /**
     * 现金收款 cash_pay
     */
    private BigDecimal cash;
    /**
     * 微信支付金额 wechat_mini
     */
    private BigDecimal wechat;

    /**
     * 支付宝支付金额 alipay_mini
     */
    private BigDecimal alipay;

    /**
     * 二维码收款 main_scan
     */
    private BigDecimal selfScan;
    /**
     * 扫码收款 back_scan
     */
    private BigDecimal barScan;

    /**
     * 挂账 credit_pay
     */
    private BigDecimal owed;

    /**
     * 余额支付 vip_pay
     */
    private BigDecimal balance;

    /**
     * 充值
     */
    private BigDecimal recharge;

    /**
     * 退款金额
     */
    private BigDecimal refundAmount;
    /**
     * 退菜数量
     */
    private BigDecimal returnDishCount;



    /**
     * 订单数量
     */
    private Integer orderCount;
    /**
     * 分类数据 json
     */
    private String categoryData;
    /**
     * 商品数据 json
     */
    private String productData;
}