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:23:50
*/
@Data
@TableName("water_source")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class WaterSourceDO extends BaseDO {
    //业务主键ID
    @ApiModelProperty(value = "业务主键ID")
    private String waterSourceId;
    //消防水源名称
    @ApiModelProperty(value = "消防水源名称")
    private String waterSourceName;
    //消防水源状态(字典码)
    @ApiModelProperty(value = "消防水源状态(字典码)")
    private String waterSourceStatus;
    //所属单位或部门
    @ApiModelProperty(value = "所属单位或部门")
    private String belongOrgDept;
    //经度
    @ApiModelProperty(value = "经度")
    private Double lng;
    //纬度
    @ApiModelProperty(value = "纬度")
    private Double lat;
    //水源位置
    @ApiModelProperty(value = "水源位置")
    private String waterLocation;
    //接口形式
    @ApiModelProperty(value = "接口形式")
    private String interfaceForm;
    //水源类型
    @ApiModelProperty(value = "水源类型")
    private String waterType;
    //水源编号
    @ApiModelProperty(value = "水源编号")
    private String waterCode;
    //吸水口规格
    @ApiModelProperty(value = "吸水口规格")
    private String suctionSpec;
    //水源容量
    @ApiModelProperty(value = "水源容量")
    private String capacity;
    //供水能力
    @ApiModelProperty(value = "供水能力")
    private String supplyAbility;
    //设备清单
    @ApiModelProperty(value = "设备清单")
    private String equipmentList;

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

}

