| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- 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;
- }
- }
|