package com.xiaoniu.subsystem.business.domain.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

import com.xiaoniu.subsystem.business.domain.Project;
import com.xiaoniu.subsystem.business.domain.ProjectUnit;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 培训计划关联单位管理表
 * </p>
 *
 * @author haoxuyang
 * @since 2024-12-17 03:03:41
 */
@Data
public class ProjectUnitDTO {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "计划单位关联ID")
    private Long projectUnitId;

    @Schema(description = "计划ID")
    private Long projectId;

    @Schema(description = "单位ID")
    @NotNull(message =  "单位ID不能为空")
    private Long unitId;

    @Schema(description = "单位名称")
    @NotBlank(message =  "单位名称不能为空")
    private String unitName;

    @Schema(description = "人数")
    @NotNull(message =  "人数不能为空")
    private Integer peopleNum;

    @Schema(description = "是否下发")
    private Integer status;


}
