|
@@ -122,16 +122,17 @@ public class DataSourceController {
|
|
|
|
|
|
/**
|
|
|
* 获取复合筛选结构复合筛选
|
|
|
- * @param id 数据源id
|
|
|
+ *
|
|
|
+ * @param id 数据源id
|
|
|
* @param chooseItemStr 所选节点路径字符串
|
|
|
- * @param nextItemStr 下级所输关键字
|
|
|
- * @param needItemStr 需要的节点字符串
|
|
|
+ * @param nextItemStr 下级所输关键字
|
|
|
+ * @param needItemStr 需要的节点字符串
|
|
|
* @return
|
|
|
*/
|
|
|
@GetMapping("/getCompositeScreen")
|
|
|
public Result getCompositeScreen(Integer id, String chooseItemStr, String nextItemStr, String needItemStr) {
|
|
|
if (Blank.isEmpty(id, nextItemStr, needItemStr)) {
|
|
|
- return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), "数据源不能为空");
|
|
|
+ return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), ResultEnum.REQUEST_WRONGPARAMS.getRespMsg());
|
|
|
}
|
|
|
return dataSourceService.getCompositeScreen(id, chooseItemStr, nextItemStr, needItemStr);
|
|
|
}
|
|
@@ -230,4 +231,18 @@ public class DataSourceController {
|
|
|
return dataSourceService.delDataSourceDriver(id);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 通过数据源id获取,此驱动配置下面的数据项信息
|
|
|
+ *
|
|
|
+ * @param id
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping("/getDriverItemBySouceId")
|
|
|
+ public Result getDriverItemBySouceId(Integer id) {
|
|
|
+ if (Blank.isEmpty(id)) {
|
|
|
+ return Result.no(ResultEnum.REQUEST_WRONGPARAMS.getRespCode(), ResultEnum.REQUEST_WRONGPARAMS.getRespMsg());
|
|
|
+ }
|
|
|
+ return dataSourceService.getDriverItemBySouceId(id);
|
|
|
+ }
|
|
|
+
|
|
|
}
|