package org.dromara.biz.domain.bo;

import org.dromara.biz.domain.BizTaskWork;
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.*;

import java.util.Date;

/**
 * 任务协作单业务对象 biz_task_work
 *
 * @author chenle
 * @date 2025-05-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BizTaskWork.class, reverseConvertGenerate = false)
public class BizTaskWorkBo extends BaseEntity {

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

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

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

    /**
     * 单位名称
     */
    @NotBlank(message = "单位名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deptName;

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

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

    /**
     * 主办人名称
     */
    @NotBlank(message = "主办人名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String sponsorName;

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

    /**
     * 辅办人名称
     */
    @NotBlank(message = "辅办人名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String assistantName;

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

    /**
     * 状态（1待民警签收，2已签收待反馈，3已反馈）
     */
    @NotBlank(message = "状态（1待民警签收，2已签收待反馈，3已反馈）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 1,2,3
     */
    private String ossId;


    //审批内容
    private String spContent;
    private Date spTime;


}
