package com.zhiwei.manage.bean;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Component;

/**
 * 运行信息
 * 
 * @author admin
 *
 */
@Component
public class RunMsg implements Serializable {

	private static final long serialVersionUID = 6123479183870011019L;
	private String templateId;
	private String templateName;
	private String runType;// 运行类型
	private int interval;
	private String errorMsg;
	private Date nextRun;
	private boolean runNow;
	private String field;// 查询字段
	private String value;
	private double rate;
	private List<String> fields;

	public String getTemplateId() {
		return templateId;
	}

	public void setTemplateId(String templateId) {
		this.templateId = templateId;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

	public String getRunType() {
		return runType;
	}

	public void setRunType(String runType) {
		this.runType = runType;
	}

	public int getInterval() {
		return interval;
	}

	public void setInterval(int interval) {
		this.interval = interval;
	}

	public String getErrorMsg() {
		return errorMsg;
	}

	public void setErrorMsg(String errorMsg) {
		this.errorMsg = errorMsg;
	}

	public Date getNextRun() {
		return nextRun;
	}

	public void setNextRun(Date nextRun) {
		this.nextRun = nextRun;
	}

	public boolean isRunNow() {
		return runNow;
	}

	public void setRunNow(boolean runNow) {
		this.runNow = runNow;
	}

	public String getField() {
		return field;
	}

	public void setField(String field) {
		this.field = field;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public double getRate() {
		return rate;
	}

	public void setRate(double rate) {
		this.rate = rate;
	}

	public List<String> getFields() {
		return fields;
	}

	public void setFields(List<String> fields) {
		this.fields = fields;
	}

	@Override
	public String toString() {
		return "RunMsg [templateId=" + templateId + ", templateName=" + templateName + ", runType=" + runType
				+ ", interval=" + interval + ", errorMsg=" + errorMsg + ", nextRun=" + nextRun + ", runNow=" + runNow
				+ ", field=" + field + ", value=" + value + ", rate=" + rate + ", fields=" + fields + "]";
	}

}
