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:22:16
*/
@Data
@TableName("pump_room")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class PumpRoomDO extends BaseDO {
    //业务主键ID
    @ApiModelProperty(value = "业务主键ID")
    private String pumpRoomId;
    //消防泵房名称
    @ApiModelProperty(value = "消防泵房名称")
    private String pumpRoomName;
    //消防泵房状态(字典码)
    @ApiModelProperty(value = "消防泵房状态(字典码)")
    private String pumpRoomStatus;
    //负责人
    @ApiModelProperty(value = "负责人")
    private String principalName;
    //负责人手机号
    @ApiModelProperty(value = "负责人手机号")
    private String principalPhone;
    //经度
    @ApiModelProperty(value = "经度")
    private Double lng;
    //纬度
    @ApiModelProperty(value = "纬度")
    private Double lat;

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

}

