package com.zg.project.wisdom.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zg.framework.web.domain.BaseEntity;
import com.zg.framework.aspectj.lang.annotation.Excel;
import java.util.Date;

/**
 * 调度任务实体类
 *
 * @author zg
 */
public class DdTask extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /** 任务编号 */
    @Excel(name = "任务编号")
    private String taskNo;

    /** 任务详情 */
    @Excel(name = "任务详情")
    private String taskDtl;

    /** 任务类型（0入库,1出库,2移库） */
    @Excel(name = "任务类型")
    private String taskType;

    /** 任务状态（0待建，1完成，-1取消） */
    @Excel(name = "任务状态")
    private Integer taskStatus;

    /** 物料状态（0空托，1有货） */
    @Excel(name = "物料状态")
    private Integer midStatus;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String mid;

    /** 物料数量 */
    @Excel(name = "物料数量")
    private Integer num;

    /** 物资状态（合格品/不合格品/样品等） */
    @Excel(name = "物资状态")
    private String midType;

    /** 起始位置 */
    @Excel(name = "起始位置")
    private String sourceName;

    /** 目标位置 */
    @Excel(name = "目标位置")
    private String targetName;

    /** 操作员 */
    @Excel(name = "操作员")
    private String operator;

    /** 审核员 */
    @Excel(name = "审核员")
    private String approver;

    /** 单据创建时间（原始单据时间） */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "单据创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date rcptim;

    /** 绑定单据ID */
    @Excel(name = "rcp id")
    private String rid;

    /** 执行次数 */
    @Excel(name = "执行次数")
    private Integer doCount;

    /** 封签码或订单号 */
    @Excel(name = "封签码/订单号")
    private String prf;

    /** 是否删除（0正常 1删除） */
    private String isDelete;

    // getter/setter
    public Long getId() { return id; }
    public void setId(Long id) { this.id = id; }

    public String getTaskNo() { return taskNo; }
    public void setTaskNo(String taskNo) { this.taskNo = taskNo; }

    public String getTaskDtl() { return taskDtl; }
    public void setTaskDtl(String taskDtl) { this.taskDtl = taskDtl; }

    public String getTaskType() { return taskType; }
    public void setTaskType(String taskType) { this.taskType = taskType; }

    public Integer getTaskStatus() { return taskStatus; }
    public void setTaskStatus(Integer taskStatus) { this.taskStatus = taskStatus; }

    public Integer getMidStatus() { return midStatus; }
    public void setMidStatus(Integer midStatus) { this.midStatus = midStatus; }

    public String getMid() { return mid; }
    public void setMid(String mid) { this.mid = mid; }

    public Integer getNum() { return num; }
    public void setNum(Integer num) { this.num = num; }

    public String getMidType() { return midType; }
    public void setMidType(String midType) { this.midType = midType; }

    public String getSourceName() { return sourceName; }
    public void setSourceName(String sourceName) { this.sourceName = sourceName; }

    public String getTargetName() { return targetName; }
    public void setTargetName(String targetName) { this.targetName = targetName; }

    public String getOperator() { return operator; }
    public void setOperator(String operator) { this.operator = operator; }

    public String getApprover() { return approver; }
    public void setApprover(String approver) { this.approver = approver; }

    public Date getRcptim() { return rcptim; }
    public void setRcptim(Date rcptim) { this.rcptim = rcptim; }

    public String getRid() { return rid; }
    public void setRid(String rid) { this.rid = rid; }

    public Integer getDoCount() { return doCount; }
    public void setDoCount(Integer doCount) { this.doCount = doCount; }

    public String getPrf() { return prf; }
    public void setPrf(String prf) { this.prf = prf; }

    public String getIsDelete() { return isDelete; }
    public void setIsDelete(String isDelete) { this.isDelete = isDelete; }

    @Override
    public String toString() {
        return "DdTask{" +
                "id=" + id +
                ", taskNo='" + taskNo + '\'' +
                ", taskDtl='" + taskDtl + '\'' +
                ", taskType='" + taskType + '\'' +
                ", taskStatus=" + taskStatus +
                ", midStatus=" + midStatus +
                ", mid='" + mid + '\'' +
                ", num=" + num +
                ", midType='" + midType + '\'' +
                ", sourceName='" + sourceName + '\'' +
                ", targetName='" + targetName + '\'' +
                ", operator='" + operator + '\'' +
                ", approver='" + approver + '\'' +
                ", rcptim=" + rcptim +
                ", rid='" + rid + '\'' +
                ", doCount=" + doCount +
                ", prf='" + prf + '\'' +
                ", isDelete='" + isDelete + '\'' +
                '}';
    }
}
