package com.gxwebsoft.apps.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 电池管理记录表
 *
 * @author 科技小王子
 * @since 2023-02-28 22:40:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "EquipmentGoods对象", description = "电池管理记录表")
@TableName("apps_equipment_goods")
public class EquipmentGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品ID")
    @TableId(value = "goods_id", type = IdType.AUTO)
    private Integer goodsId;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "下单类型")
    private String equipmentCategory;

    @ApiModelProperty(value = "商品封面图")
    private String image;

    @ApiModelProperty(value = "二维码")
    private String qrcode;

    @ApiModelProperty(value = "分类ID")
    private Integer categoryId;

    @ApiModelProperty(value = "电池型号")
    private String batteryModel;

    @ApiModelProperty(value = "库存总量")
    private Integer stockTotal;

    @ApiModelProperty(value = "商品卖点")
    private String sellingPoint;

    @ApiModelProperty(value = "商品详情")
    private String content;

    @ApiModelProperty(value = "电池租金")
    private BigDecimal batteryRent;

    @ApiModelProperty(value = "电池价格")
    private BigDecimal batteryPrice;

    @ApiModelProperty(value = "电池押金")
    private BigDecimal batteryDeposit;

    @ApiModelProperty(value = "电池保险")
    private BigDecimal batteryInsurance;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "首付款")
    private BigDecimal downPayment;

    @ApiModelProperty(value = "分期期数")
    private BigDecimal periods;

    @ApiModelProperty(value = "每期还款")
    private BigDecimal repayment;

    @ApiModelProperty(value = "手续费")
    private BigDecimal serviceCharges;

    @ApiModelProperty(value = "投资人收益")
    private BigDecimal touziProfit;

    @ApiModelProperty(value = "投资人分期首期收益")
    private BigDecimal touziFirstProfit;

    @ApiModelProperty(value = "推荐人收益")
    private BigDecimal tuijianProfit;

    @ApiModelProperty(value = "推荐人分期首期收益")
    private BigDecimal tuijianFirstProfit;

    @ApiModelProperty(value = "门店收益")
    private BigDecimal mendianProfit;

    @ApiModelProperty(value = "门店分期首期收益")
    private BigDecimal mendianFirstProfit;

    @ApiModelProperty(value = "区域经理收益")
    private BigDecimal jingliProfit;

    @ApiModelProperty(value = "区域经理分期首期收益")
    private BigDecimal jingliFirstProfit;

    @ApiModelProperty(value = "分期方式")
    private Integer periodsType;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "状态, 0正常, 1冻结")
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "商户编码")
    private String merchantCode;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "商户名称")
    @TableField(exist = false)
    private String merchantName;

    @ApiModelProperty(value = "订单ID")
    @TableField(exist = false)
    private Integer orderId;

}
