package com.zcloud.zcGbsServicer.persistence.dataobject;

import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.annotation.*;
import com.jjb.saas.framework.repository.basedo.BaseDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* web-infrastructure
* @Author makejava
* @Date 2026-01-21 17:21:48
*/
@Data
@TableName("control_room")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ControlRoomDO extends BaseDO {
    //业务主键ID
    @ApiModelProperty(value = "业务主键ID")
    private String roomId;
    //消防控制室名称
    @ApiModelProperty(value = "消防控制室名称")
    private String roomName;
    //消防控制室状态(字典码)
    @ApiModelProperty(value = "消防控制室状态(字典码)")
    private String roomStatus;
    //消防控制室状态名称
    @ApiModelProperty(value = "消防控制室状态名称")
    private String roomStatusName;
    //负责人
    @ApiModelProperty(value = "负责人")
    private String principalName;
    //负责人手机号
    @ApiModelProperty(value = "负责人手机号")
    private String principalPhone;
    //经度
    @ApiModelProperty(value = "经度")
    private Double lng;
    //纬度
    @ApiModelProperty(value = "纬度")
    private Double lat;

    public ControlRoomDO(String roomId) {
        this.roomId= StrUtil.isNotBlank(roomId) ? roomId :IdUtil.simpleUUID();
    }

}

