package com.huimv.employment.service.order.dto;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 企业确认开工请求体。
 * <p>齐签后若已签人数仍少于计划人数，须将 {@link #allowUnderstaffed} 置为 true 才可开工。</p>
 */
@Schema(description = "企业确认开工请求")
public class OrderStartWorkRequest {

    /** true=允许已签人数 &lt; 计划人数时缺编开工 */
    @JsonProperty("allow_understaffed")
    @JsonAlias({"allowUnderstaffed"})
    @Schema(description = "已签人数少于计划人数时，是否仍确认缺编开工；默认 false")
    private Boolean allowUnderstaffed;

    public Boolean getAllowUnderstaffed() {
        return allowUnderstaffed;
    }

    public void setAllowUnderstaffed(Boolean allowUnderstaffed) {
        this.allowUnderstaffed = allowUnderstaffed;
    }

    public boolean isAllowUnderstaffed() {
        return Boolean.TRUE.equals(allowUnderstaffed);
    }
}
