998f75a4b51c9d7e3c680524591deb77b6aca367.svn-base 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. package org.jeecg.common.online.api;
  2. import com.alibaba.fastjson.JSONObject;
  3. import org.jeecg.common.system.vo.DictModel;
  4. import java.util.List;
  5. import java.util.Map;
  6. /**
  7. * 表单设计器【Online】翻译API接口
  8. *
  9. * @author sunjianlei
  10. */
  11. public interface IOnlineBaseExtAPI {
  12. /**
  13. * 【Online】 表单设计器专用:同步新增
  14. */
  15. String cgformPostCrazyForm(String tableName, JSONObject jsonObject) throws Exception;
  16. /**
  17. * 【Online】 表单设计器专用:同步编辑
  18. */
  19. String cgformPutCrazyForm(String tableName, JSONObject jsonObject) throws Exception;
  20. /**
  21. * online表单删除数据
  22. *
  23. * @param cgformCode Online表单code
  24. * @param dataIds 数据ID,可逗号分割
  25. * @return
  26. */
  27. String cgformDeleteDataByCode(String cgformCode, String dataIds);
  28. /**
  29. * 通过online表名查询数据,同时查询出子表的数据
  30. *
  31. * @param tableName online表名
  32. * @param dataIds online数据ID
  33. * @return
  34. */
  35. JSONObject cgformQueryAllDataByTableName(String tableName, String dataIds);
  36. /**
  37. * 对 cgreportGetData 的返回值做优化,封装 DictModel 集合
  38. *
  39. * @return
  40. */
  41. List<DictModel> cgreportGetDataPackage(String code, String dictText, String dictCode, String dataList);
  42. /**
  43. * 【cgreport】通过 head code 获取 sql语句,并执行该语句返回查询数据
  44. *
  45. * @param code 报表Code,如果没传ID就通过code查
  46. * @param forceKey
  47. * @param dataList
  48. * @return
  49. */
  50. Map<String, Object> cgreportGetData(String code, String forceKey, String dataList);
  51. }