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 handAmount;
    /**
     * 现金收入
     */
    private BigDecimal cashAmount;
    /**
     * 微信收入
     */
    private BigDecimal wechatAmount;
    /**
     * 支付宝收入
     */
    private BigDecimal alipayAmount;
    /**
     * 会员支付
     */
    private BigDecimal vipPay;
    /**
     * 会员充值
     */
    private BigDecimal vipRecharge;
    /**
     * 分类数据 json
     */
    private String categoryData;
    /**
     * 商品数据 json
     */
    private String productData;
    /**
     * 快捷收款金额
     */
    private BigDecimal quickInAmount;
    /**
     * 退款金额
     */
    private BigDecimal refundAmount;
    /**
     * 挂账金额
     */
    private BigDecimal creditAmount;
    /**
     * 订单数量
     */
    private Integer orderCount;
}