Commit e871b21a by songzhenmin

feat:excel自定义报表导出

parent c3daae30
...@@ -135,6 +135,7 @@ public class ExcelServiceImpl implements ExcelService { ...@@ -135,6 +135,7 @@ public class ExcelServiceImpl implements ExcelService {
} }
public List<LinkedHashMap<String, String>> getResultList(String date, String querySql) { public List<LinkedHashMap<String, String>> getResultList(String date, String querySql) {
querySql = querySql.replace("#{starttime}", date.substring(0,4) + "01");
querySql = querySql.replace("#{endtime}", date); querySql = querySql.replace("#{endtime}", date);
List<LinkedHashMap<String, String>> mapList = sysExcelReportsMapper.getDataList(querySql); List<LinkedHashMap<String, String>> mapList = sysExcelReportsMapper.getDataList(querySql);
return mapList; return mapList;
......
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