/**
 * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
 */
package com.jeeplus.modules.workreview.entity;


import com.jeeplus.common.persistence.TreeEntity;
import com.jeeplus.common.utils.excel.annotation.ExcelField;

/**
 * 复核标准Entity
 * @author ssrh
 * @version 2018-06-01
 */
public class WorkReviewAudit extends TreeEntity<WorkReviewAudit>{

	private static final long serialVersionUID = 1L;
	private String standardDetail;		// 标准内容
	private String parentIds;		// 所有父ID
	private Byte maxDeduct;		// 最多扣分
	private Byte deduct;		// 扣分
	private String orderNum;		// 排序
	private String companyId;   //公司id
	private String type;
	private String reportId;

	public WorkReviewAudit() {
		super();
	}

	public WorkReviewAudit(String id){
		super(id);
	}

	@ExcelField(title="标准内容", align=2, sort=8)
	public String getStandardDetail() {
		return standardDetail;
	}

	public void setStandardDetail(String standardDetail) {
		this.standardDetail = standardDetail;
	}
	
	@ExcelField(title="所有父ID", align=2, sort=9)
	public String getParentIds() {
		return parentIds;
	}

	public void setParentIds(String parentIds) {
		this.parentIds = parentIds;
	}
	
	@ExcelField(title="最多扣分", align=2, sort=10)
	public Byte getMaxDeduct() {
		return maxDeduct;
	}

	public void setMaxDeduct(Byte maxDeduct) {
		this.maxDeduct = maxDeduct;
	}
	
	@ExcelField(title="排序", align=2, sort=11)
	public String getOrderNum() {
		return orderNum;
	}

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

    public WorkReviewAudit getParent() {
        return parent;
    }

    public void setParent(WorkReviewAudit parent) {
        this.parent = parent;
    }

    public int getGrade(){
        String[] split = this.getParentIds().split(",");
        return split.length-1;
    }

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getReportId() {
		return reportId;
	}

	public void setReportId(String reportId) {
		this.reportId = reportId;
	}

	public Byte getDeduct() {
		return deduct;
	}

	public void setDeduct(Byte deduct) {
		this.deduct = deduct;
	}
}