package com.gxwebsoft.apps.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 设备管理查询参数
 *
 * @author 科技小王子
 * @since 2022-11-30 02:11:16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "EquipmentParam对象", description = "设备管理查询参数")
public class EquipmentParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "设备ID")
    @QueryField(type = QueryType.EQ)
    private Integer equipmentId;

    @ApiModelProperty(value = "设备名称")
    private String equipmentName;

    @ApiModelProperty(value = "设备分类")
    private String equipmentCategory;

    @ApiModelProperty(value = "设备编码")
    private String equipmentCode;

    @ApiModelProperty(value = "商品分类ID")
    @QueryField(type = QueryType.EQ)
    private Integer categoryId;

    @ApiModelProperty(value = "头像")
    private String equipmentAvatar;

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

    @ApiModelProperty(value = "BMS")
    private String bms;

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

    @ApiModelProperty(value = "是否激活")
    private String isCtive;

    @ApiModelProperty(value = "工作状态")
    private String workingStatus;

    @ApiModelProperty(value = "租赁状态")
    private String leaseStatus;

    @ApiModelProperty(value = "电池状态")
    private String batteryStatus;

    @ApiModelProperty(value = "电池电量")
    private String batteryPower;

    @ApiModelProperty(value = "是否在线")
    private String isOnline;

    @ApiModelProperty(value = "总电压")
    private String totalVoltage;

    @ApiModelProperty(value = "BMS板供应商")
    private String bmsBrand;

    @ApiModelProperty(value = "剩余容量")
    private String surplusCapacity;

    @ApiModelProperty(value = "ICCID")
    private String iccid;

    @ApiModelProperty(value = "设备激活时间")
    private String ctiveTime;

    @ApiModelProperty(value = "电池出厂时间")
    private String batteryDeliveryTime;

    @ApiModelProperty(value = "绑定的订单")
    @QueryField(type = QueryType.EQ)
    private Integer orderId;

    @ApiModelProperty(value = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @ApiModelProperty(value = "备注")
    @QueryField(type = QueryType.LIKE)
    private String comments;

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

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

    @ApiModelProperty(value = "所属商户ID")
    @TableField(exist = false)
    private Integer merchantId;

    @ApiModelProperty(value = "商户编号")
    @QueryField(type = QueryType.EQ)
    private String merchantCode;

    @ApiModelProperty(value = "所属商户名称")
    @QueryField(type = QueryType.EQ)
    private String merchantName;

}
