package com.maintain.business.domain.bo;

import com.maintain.common.core.validate.AddGroup;
import com.maintain.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.maintain.common.core.domain.BaseEntity;

/**
 * 报修单-报修项目-派工业务对象 erp_repair_form_project_dispatch
 *
 * @author liushuai
 * @date 2025-04-01
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpRepairFormProjectDispatchBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 报修单ID
     */
    private Long repairFormId;

    /**
     * 报修单项目ID
     */
    private Long repairFormProjectId;

    /**
     * 部门ID
     */
    private Long deptId;

    /**
     * 部门名称
     */
    private String deptName;

    /**
     * 班组ID
     */
    private Long groupId;

    /**
     * 班组名称
     */
    private String groupName;

    /**
     * 维修人员ID
     */
    @NotNull(message = "维修人员ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long maintainUserId;

    /**
     * 维修人员名称
     */
    private String maintainUserName;

    /**
     * 维修人员状态
     */
    private Integer maintainUserState;

    /**
     * 岗位ID
     */
    private Long postId;

    /**
     * 岗位名称
     */
    private String postName;

    /**
     * 分配工时
     */
    @NotNull(message = "分配工时不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal dispatchManHour;

    /**
     * 扣罚工时
     */
    @NotNull(message = "扣罚工时不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal deductManHour;

    /**
     * 实际工时
     */
    @NotNull(message = "实际工时不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal actualManHour;


}
