package com.product.server.report.service.idel; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.product.core.entity.DataTableEntity; import com.product.core.entity.FieldSetEntity; import com.product.core.exception.BaseException; import java.util.List; public interface IGenerateEChartService{ /** * 多个图形报表 * @param fse 配置报表 * @return */ JSONArray generatePieEChartMaster(FieldSetEntity fse)throws BaseException; /** * 单个图形报表 * @param fse 配置报表 * @return */ JSONObject generatePieEChart(FieldSetEntity fse)throws BaseException; /** * 获取上级数据并拼装json * @param superiorUuid 上级uuid * @param obj * @return * @throws BaseException */ void getAllProperties(String superiorUuid,JSONObject obj, JSONObject allProperties)throws BaseException; /** * 获取上级数据并拼装json * @param dataTableEntity 数据值data * @param * @return * @throws BaseException */ JSONArray attributesAndValues(DataTableEntity dataTableEntity,List keys,List keys2,String type)throws BaseException; /** * 改变数据格式 * @param attr_value 获取的数据值 * @param * @return * @throws BaseException */ Object changeDataFormat(String attr_value)throws BaseException; /** * 关系表 * @param sql * @param * @return * @throws BaseException */ JSONObject chooseRelationship(String sql)throws BaseException; /** * 通过配置表uuid获取js方法 * @param uuid 配置表uuid * @param * @return * @throws BaseException */ JSONArray functionArray(String uuid)throws BaseException; /** * 图表发布 * @param fieldSetEntity * @param * @return * @throws BaseException */ List releaseConfig(FieldSetEntity fieldSetEntity,String module_uuid,String parentCode)throws BaseException; /** * 取消发布 * @param fieldSetEntity * @param * @return * @throws BaseException */ Boolean cancelRelease(FieldSetEntity fieldSetEntity)throws BaseException; }