package com.kxs.store.api.model;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 客小爽预发机明细表(KxsMachineAdvanceInfo)表实体类
 *
 * @author 系统
 * @since 2024-01-10 18:14:55
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsMachineAdvanceInfo extends Model<KxsMachineAdvanceInfo> implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    
    
    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;


    /**
     * 新增时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "新增时间")
    private LocalDateTime createTime;


    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;


    /**
     * 删除标记，0未删除，1已删除
     */
    @Schema(description = "删除标记，0未删除，1已删除")
    private Integer delFlag;


    /**
     * 版本
     */
    @Schema(description = "版本")
    private Integer version;


    /**
     * 机具ID
     */
    @Schema(description = "机具ID")
    private Integer machineId;


    /**
     * 是否申请机具 0未申请 1已申请
     */
    @Schema(description = "是否申请机具 0未申请 1已申请")
    private Integer isApply;


    /**
     * 是否撤回 0未撤回 1已撤回
     */
    @Schema(description = "是否撤回 0未撤回 1已撤回")
    private Integer isReturn;


    /**
     * 撤回时间
     */
    @Schema(description = "撤回时间")
    private LocalDateTime returnTime;


    /**
     * 是否确认收货 0未确认 1已确认 2已拒绝
     */
    @Schema(description = "是否确认收货 0未确认 1已确认 2已拒绝")
    private Integer isConfirm;


    /**
     * 是否占用预发额度 0否 1是
     */
    @Schema(description = "是否占用预发额度 0否 1是")
    private Integer isUseAmount;


    /**
     * 机具码
     */
    @Schema(description = "机具码")
    private String posSn;


    /**
     * 是否预扣款 0否 1是
     */
    @Schema(description = "是否预扣款 0否 1是")
    private Integer isAdvance;


    /**
     * 预扣款表ID
     */
    @Schema(description = "预扣款表ID")
    private Integer advanceId;


    /**
     * 预发机主表ID
     */
    @Schema(description = "预发机主表ID")
    private Integer orderId;




}

