package com.ruoyi.info.hospital.domain.bo;

import java.util.Date;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import org.springframework.format.annotation.DateTimeFormat;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.QueryGroup;

/**
 * 医院科室信息业务对象 tb_hospital_department
 *
 * @author baifc
 * @date 2025-09-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("医院科室信息业务对象")
public class HospitalDepartmentBo extends BaseEntity {

    /**
     * 科室id
     */
    @ApiModelProperty(value = "科室id", required = true)
    @NotNull(message = "科室id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 医院id
     */
    @ApiModelProperty(value = "医院id", required = true)
    @NotNull(message = "医院id不能为空", groups = { AddGroup.class, EditGroup.class, QueryGroup.class })
    private Long hospitalId;

    /**
     * 科室名称
     */
    @ApiModelProperty(value = "科室名称", required = true)
    @NotBlank(message = "科室名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 上架状态 0-上架 1-下架
     */
    @ApiModelProperty(value = "上架状态 0-上架 1-下架", required = true)
    @NotBlank(message = "上架状态 0-上架 1-下架不能为空", groups = { AddGroup.class, EditGroup.class })
    private String rackStatus;

    /**
     * 排序序号
     */
    @ApiModelProperty("排序序号")
    @NotNull(message = "排序序号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer sortOrder;

    /**
     * 创建时间开始
     */
    @ApiModelProperty(value = "创建时间开始")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTimeStart;

    /**
     * 创建时间结束
     */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间结束")
    private Date createTimeEnd;


    @ApiModelProperty("需要关联的管理老师id")
    private Long teacherId;

}
