package com.zcloud.zcGbsServicer.persistence.dataobject;

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

import java.time.LocalDate;

/**
* web-infrastructure
* @Author makejava
* @Date 2026-01-21 17:23:00
*/
@Data
@TableName("rescue_team")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class RescueTeamDO extends BaseDO {
    @ApiModelProperty(value = "业务主键ID")
    private String teamId;

    @ApiModelProperty(value = "救援队名称")
    private String teamName;

    @ApiModelProperty(value = "类型")
    private String teamType;

    @ApiModelProperty(value = "类型名称")
    private String teamTypeName;

    @ApiModelProperty(value = "负责单位或部门")
    private String chargeOrgDept;

    @ApiModelProperty(value = "队长")
    private String captainName;

    @ApiModelProperty(value = "队长电话")
    private String captainPhone;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "指挥人员")
    private String commandCrew;

    @ApiModelProperty(value = "建立日期")
    private LocalDate establishDate;

    @ApiModelProperty(value = "所属区域或范围")
    private String regionScope;

    @ApiModelProperty(value = "所属区域或范围名称")
    private String regionScopeName;

    @ApiModelProperty(value = "职责和任务范围")
    private String dutyScope;

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