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 com.zcloud.gbscommon.utils.Tools;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
* web-infrastructure
* @Author makejava
* @Date 2026-01-21 17:23:34
*/
@Data
@TableName("resource_person")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ResourcePersonDO extends BaseDO {
    //业务主键ID
    @ApiModelProperty(value = "业务主键ID")
    private String personId;
    //资源类型:1救援队,2控制室,3泵房,4水源
    @ApiModelProperty(value = "资源类型:1救援队,2控制室,3泵房,4水源")
    private Integer bizType;
    //资源业务ID(对应主表biz_id)
    @ApiModelProperty(value = "资源业务ID(对应主表biz_id)")
    private String bizId;
    //人员角色:1队员,2值班人员,3指挥,4负责人
    @ApiModelProperty(value = "人员角色:1队员,2值班人员,3指挥,4负责人")
    private Integer roleCode;
    //人员姓名
    @ApiModelProperty(value = "人员姓名")
    private String personName;
    //人员电话
    @ApiModelProperty(value = "人员电话")
    private String personPhone;
    //值班情况/职责描述
    @ApiModelProperty(value = "值班情况/职责描述")
    private String dutyDesc;
    //排序
    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "删除表示")
    private String deleteEnum;

    public ResourcePersonDO(String personId) {
        if (StrUtil.isBlank(personId)) this.personId = Tools.get32UUID();
        else this.personId = personId;
    }

}

