BudgetRedisCellData.java 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. package cn.com.lzt.budget.data.dto;
  2. import cn.com.lzt.budget.data.util.BudgetExcelUtil;
  3. import org.codehaus.jackson.annotate.JsonIgnore;
  4. import java.io.Serializable;
  5. import java.util.Objects;
  6. public class BudgetRedisCellData implements Serializable {
  7. private static final long serialVersionUID = 2484438077010272263L;
  8. private String id;
  9. private String name;
  10. private Integer row;
  11. private Integer col;
  12. private String cellName;
  13. private Type type;
  14. private String tableName;//如果是inst 记录所在table
  15. private String effectCell;//影响单元格
  16. private String dependDimFunctionDetailId;//通过哪个维度公式详情找到的
  17. private String functionId;//本单元格functionId
  18. private String entityId;
  19. public static enum Type{
  20. inst,//实例
  21. costbreakdown,//分解总表
  22. excelFormula;//excel公式
  23. }
  24. @Override
  25. public boolean equals(Object o) {
  26. if (this == o) return true;
  27. if (o == null || getClass() != o.getClass()) return false;
  28. BudgetRedisCellData that = (BudgetRedisCellData) o;
  29. return Objects.equals(id, that.id);
  30. }
  31. @Override
  32. public int hashCode() {
  33. return Objects.hash(id);
  34. }
  35. public String getId() {
  36. return id;
  37. }
  38. public void setId(String id) {
  39. this.id = id;
  40. }
  41. public String getName() {
  42. return name;
  43. }
  44. public void setName(String name) {
  45. this.name = name;
  46. }
  47. public Integer getRow() {
  48. return row;
  49. }
  50. public void setRow(Integer row) {
  51. this.row = row;
  52. }
  53. public Integer getCol() {
  54. return col;
  55. }
  56. public void setCol(Integer col) {
  57. this.col = col;
  58. }
  59. public String getCellName() {
  60. return BudgetExcelUtil.cellName(row,col);
  61. }
  62. public void setCellName(String cellName) {
  63. this.cellName = cellName;
  64. }
  65. public Type getType() {
  66. return type;
  67. }
  68. public void setType(Type type) {
  69. this.type = type;
  70. }
  71. public String getEffectCell() {
  72. return effectCell;
  73. }
  74. public void setEffectCell(String effectCell) {
  75. this.effectCell = effectCell;
  76. }
  77. public String getTableName() {
  78. return tableName;
  79. }
  80. public void setTableName(String tableName) {
  81. this.tableName = tableName;
  82. }
  83. public String getDependDimFunctionDetailId() {
  84. return dependDimFunctionDetailId;
  85. }
  86. public void setDependDimFunctionDetailId(String dependDimFunctionDetailId) {
  87. this.dependDimFunctionDetailId = dependDimFunctionDetailId;
  88. }
  89. public String getFunctionId() {
  90. return functionId;
  91. }
  92. public void setFunctionId(String functionId) {
  93. this.functionId = functionId;
  94. }
  95. public String getEntityId() {
  96. return entityId;
  97. }
  98. public void setEntityId(String entityId) {
  99. this.entityId = entityId;
  100. }
  101. }