Commit 78034487 authored by neo's avatar neo

[bugfix] add projectid to mapper paramap

parent 333de3b8
...@@ -113,13 +113,14 @@ public class FormulaHelper { ...@@ -113,13 +113,14 @@ public class FormulaHelper {
return rtn; return rtn;
} }
public static Long getCellTemplateIdWithTemplateCodeAndColumnIndexAndRowIndex(String templateCode, int columnIndex, int rowIndex,int period, FormulaContext formulaContext) { public static Long getCellTemplateIdWithTemplateCodeAndColumnIndexAndRowIndex(String templateCode, int columnIndex, int rowIndex, int period, FormulaContext formulaContext) {
Map<String,Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
map.put("code",templateCode); map.put("code", templateCode);
map.put("templateGroupId",formulaContext.getReportTemplateGroupId()); map.put("templateGroupId", formulaContext.getReportTemplateGroupId());
map.put("period",period); map.put("period", period);
map.put("columnIndex",columnIndex); map.put("columnIndex", columnIndex);
map.put("rowIndex",rowIndex); map.put("rowIndex", rowIndex);
map.put("projectId", formulaContext.getProjectId());
return SpringContextUtil.periodCellTemplateMapper.getCellTemplateIdWithMap(map); return SpringContextUtil.periodCellTemplateMapper.getCellTemplateIdWithMap(map);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment