package org.xyzh.common.dto.study;

import org.xyzh.common.dto.BaseDTO;
import java.util.Date;

/**
 * @description 任务项关联表（统一管理资源和课程）
 * @filename TbTaskItem.java
 * @author yslg
 * @copyright xyzh
 * @since 2025-10-24
 */
public class TbTaskItem extends BaseDTO {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * @description 任务ID
     */
    private String taskID;
    
    /**
     * @description 项类型（1资源 2课程）
     */
    private Integer itemType;
    
    /**
     * @description 项ID（资源ID或课程ID）
     */
    private String itemID;
    
    /**
     * @description 是否必须完成
     */
    private Boolean required;
    
    /**
     * @description 排序号
     */
    private Integer orderNum;
    
    /**
     * @description 创建者
     */
    private String creator;
    
    /**
     * @description 更新者
     */
    private String updater;

    

    public String getTaskID() {
        return taskID;
    }

    public void setTaskID(String taskID) {
        this.taskID = taskID;
    }

    public Integer getItemType() {
        return itemType;
    }

    public void setItemType(Integer itemType) {
        this.itemType = itemType;
    }

    public String getItemID() {
        return itemID;
    }

    public void setItemID(String itemID) {
        this.itemID = itemID;
    }

    public Boolean getRequired() {
        return required;
    }

    public void setRequired(Boolean required) {
        this.required = required;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getUpdater() {
        return updater;
    }

    public void setUpdater(String updater) {
        this.updater = updater;
    }


    @Override
    public String toString() {
        return "TbTaskItem{" +
                "id=" + getID() +
                ", taskID='" + taskID + '\'' +
                ", itemType=" + itemType +
                ", itemID='" + itemID + '\'' +
                ", required=" + required +
                ", orderNum=" + orderNum +
                ", createTime=" + getCreateTime() +
                '}';
    }
}

