package org.dromara.personnel.domain.bo;

import org.dromara.personnel.domain.OpsWorkWage;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 工种薪水业务对象 ops_work_wage
 *
 * @author LionLi
 * @date 2025-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = OpsWorkWage.class, reverseConvertGenerate = false)
public class OpsWorkWageBo extends BaseEntity {

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

    /**
     * 项目id
     */
    @NotNull(message = "项目id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long projectId;

    /**
     * 工种
     */
    @NotBlank(message = "工种不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workType;

    /**
     * 是否是特种兵（1是 2否）
     */
    private String isSpecialType;

    /**
     * 工资计算方式（1计时 2计件）
     */
    @NotBlank(message = "工资计算方式（1计时 2计件）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wageCalculationType;

    /**
     * 工资标准
     */
    @NotNull(message = "工资标准不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long wage;

    /**
     * 工资计量单位
     */
    @NotBlank(message = "工资计量单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String wageMeasureUnit;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
