package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.work.domain.TpMonth;

import java.util.Date;
import java.util.List;

/**
 * 月目标业务对象 tp_month
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AutoMapper(target = TpMonth.class, reverseConvertGenerate = false)
public class TpMonthBo {

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

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

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

    /**
     * 个人目标
     */
    private Long geren;

    /**
     * 公司目标
     */
    private Long gongsi;

    /**
     * 创建时间
     */
    private Date addTime;

    /**
     * 编号
     */
    private String nickName;

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


    private String ancestors;

    private List<Long> userIds;

}
