package org.dromara.mp.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.common.mybatis.core.domain.BaseEntity;
import org.dromara.mp.domain.MerTaskEnroll;

import java.util.Date;

/**
 * 任务的报名业务对象 mer_task_enroll
 *
 * @author LionLi
 * @date 2024-04-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = MerTaskEnroll.class, reverseConvertGenerate = false)
public class MerTaskEnrollBo extends BaseEntity {

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

    /**
     * 项目子编号
     */
    @NotBlank(message = "项目子编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String no;

    /**
     * 项目编号
     */
    @NotBlank(message = "项目编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskNo;

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

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

    /**
     * 自雇者微信openid
     */
    @NotBlank(message = "自雇者微信openid不能为空", groups = { AddGroup.class, EditGroup.class })
    private String workOpenid;

    /**
     * 竞标状态（1:竞标中 2:竞标失败 3:竞标成功）
     */
    @NotNull(message = "竞标状态（1:竞标中 2:竞标失败 3:竞标成功）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long verifyStatus;

    /**
     * 选定审核人
     */
    @NotBlank(message = "选定审核人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String verifyBy;

    /**
     * 选定审核时间
     */
    @NotNull(message = "选定审核时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date verifyTime;

    /**
     * 完工状态（0:未完成 1:已完成 2:验收驳回 3:验收通过 ）
     */
    @NotNull(message = "完工状态（0:未完成 1:已完成 2:验收驳回 3:验收通过 ）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer taskStatus;

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

    /**
     * 结算状态（0:待结算 1:已结算）
     */
    @NotNull(message = "结算状态（0:待结算 1:已结算）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer settlementStatus;

    /**
     * 任务确认书文件地址
     */
    @NotBlank(message = "任务确认书文件地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskConfirmFile;

    /**
     * 交付内容
     */
    @NotBlank(message = "交付内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskDesc;

    /**
     * 交付图片
     */
    @NotBlank(message = "交付图片不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskPic;

    /**
     * 报名时间
     */
    @NotNull(message = "报名时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date addTime;


}
