package cn.com.lzt.budget.data.dto; import cn.com.lzt.budget.data.util.BudgetExcelUtil; import org.codehaus.jackson.annotate.JsonIgnore; import java.io.Serializable; import java.util.Objects; public class BudgetRedisCellData implements Serializable { private static final long serialVersionUID = 2484438077010272263L; private String id; private String name; private Integer row; private Integer col; private String cellName; private Type type; private String tableName;//如果是inst 记录所在table private String effectCell;//影响单元格 private String dependDimFunctionDetailId;//通过哪个维度公式详情找到的 private String functionId;//本单元格functionId private String entityId; public static enum Type{ inst,//实例 costbreakdown,//分解总表 excelFormula;//excel公式 } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; BudgetRedisCellData that = (BudgetRedisCellData) o; return Objects.equals(id, that.id); } @Override public int hashCode() { return Objects.hash(id); } public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Integer getRow() { return row; } public void setRow(Integer row) { this.row = row; } public Integer getCol() { return col; } public void setCol(Integer col) { this.col = col; } public String getCellName() { return BudgetExcelUtil.cellName(row,col); } public void setCellName(String cellName) { this.cellName = cellName; } public Type getType() { return type; } public void setType(Type type) { this.type = type; } public String getEffectCell() { return effectCell; } public void setEffectCell(String effectCell) { this.effectCell = effectCell; } public String getTableName() { return tableName; } public void setTableName(String tableName) { this.tableName = tableName; } public String getDependDimFunctionDetailId() { return dependDimFunctionDetailId; } public void setDependDimFunctionDetailId(String dependDimFunctionDetailId) { this.dependDimFunctionDetailId = dependDimFunctionDetailId; } public String getFunctionId() { return functionId; } public void setFunctionId(String functionId) { this.functionId = functionId; } public String getEntityId() { return entityId; } public void setEntityId(String entityId) { this.entityId = entityId; } }