package com.kxs.product.api.model;

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

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;

/**
 * 客小爽费率调整记录表(KxsMachineRatio)表实体类
 *
 * @author 系统
 * @since 2023-12-20 10:09:35
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class KxsMachineRatio extends Model<KxsMachineRatio> 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 String delFlag;


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

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


    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Integer userId;

    /**
     * 机具所属人用户ID
     */
    @Schema(description = "机具所属人用户ID")
    private Integer posUserId;


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


    /**
     * 调整后费率
     */
    @Schema(description = "调整后费率")
    private BigDecimal ratio;


    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;


    /**
     * 操作人
     */
    @Schema(description = "操作人")
    private String createBy;


    /**
     * 品牌
     */
    @Schema(description = "品牌")
    private Integer brandId;

    /**
     * 商户ID
     */
    @Schema(description = "商户ID")
    private Integer merchantId;

    /**
     * 状态 0设置失败 1设置成功
     */
    @Schema(description = "状态 0设置失败 1设置成功")
    private Integer status;


    /**
     * 三方返回数据
     */
    @Schema(description = "三方返回数据")
    private String result;




}

