45e371c49b8c2955363e351c32fd16939c16fce7.svn-base 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package org.jeecg.modules.online.cgreport.service;
  2. import java.util.List;
  3. import java.util.Map;
  4. import org.jeecg.modules.online.cgreport.entity.DiagramConfiguration;
  5. import org.jeecg.modules.online.cgreport.entity.DiagramFieldConfiguration;
  6. import com.alibaba.fastjson.JSONObject;
  7. import com.baomidou.mybatisplus.extension.service.IService;
  8. /**
  9. * @Description: 图表配置
  10. */
  11. public interface IDiagramConfigurationService extends IService<DiagramConfiguration> {
  12. void add(DiagramConfiguration diagramConfiguration);
  13. void edit(DiagramConfiguration diagramConfiguration);
  14. void deleteById(String id);
  15. void deleteBatch(String ids);
  16. List selectBySql(String sql);
  17. /**
  18. * 封装树形列表数据
  19. * @param dataList 原始数据
  20. * @param unfoldFieldName 展开列名称
  21. * @param pid 父节点ID
  22. * @return
  23. */
  24. List<Map<String, Object>> handelTreeTableData(List<Map<String, Object>> dataList, String unfoldFieldName, String pid);
  25. /**
  26. * 封装查询sql
  27. * @param jsonObject
  28. * @return
  29. */
  30. String handelQuerySql(String cgrSql, JSONObject jsonObject, List<DiagramFieldConfiguration> diagramFieldConfigurations);
  31. }