package com.ktg.iscs.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.model.BaseBean;

import java.util.Date;

/**
 * 电机对象 is_motor
 *
 * @author cgj
 * @date 2025-09-04
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class IsMotor extends BaseBean
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "电机ID")
    @TableId(type = IdType.AUTO)
    private Long motorId;

    @ApiModelProperty(value = "隔离点id(一个隔离点对应多个电机)")
    @Excel(name = "隔离点id(一个隔离点对应多个电机)")
    private Long pointId;

    @ApiModelProperty(value = "编号")
    private String motorCode;

    @ApiModelProperty(value = "隔离点id(一个隔离点对应多个电机)")
    @Excel(name = "隔离点id(一个隔离点对应多个电机)")
    @TableField(exist = false)
    private String pointName;

    @ApiModelProperty(value = "电机名称")
    @Excel(name = "电机名称")
    private String motorName;

    @ApiModelProperty(value = "删除标志（0代表存在 2代表删除）")
    private String delFlag;

    @ApiModelProperty(value = "状态（0-开启 1-关闭）")
    private String status;

    @ApiModelProperty(value = "类型（SZ散装 GS高空运输线 MS码垛）")
    private String motorType;

    @ApiModelProperty(value = "x")
    @TableField(exist = false)
    private String x;

    @ApiModelProperty(value = "y")
    @TableField(exist = false)
    private String y;

    @ApiModelProperty(value = "mapPointId")
    @TableField(exist = false)
    private Long mapPointId;

    @ApiModelProperty(value = "隔离点序列号")
    @TableField(exist = false)
    private String pointSerialNumber;

    @TableField(exist = false)
    @ApiModelProperty(value = "开关状态最近更新时间")
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date switchLastUpdateTime;

}
