|
|
@@ -103,15 +103,6 @@ public class GovernTableTool {
|
|
|
if (condition != null) {
|
|
|
dto.setConditionSql(condition);
|
|
|
}
|
|
|
- String orderKey = StrUtil.trimToNull(query.orderKey);
|
|
|
- if (orderKey != null) {
|
|
|
- if (!COLUMN_RE.matcher(orderKey).matches()) {
|
|
|
- return ToolResults.error("非法排序列: " + orderKey + "(只允许字母/数字/下划线)");
|
|
|
- }
|
|
|
- dto.setOrderKey(orderKey);
|
|
|
- }
|
|
|
- dto.setSort(Boolean.FALSE.equals(query.asc) ? "desc" : "asc");
|
|
|
-
|
|
|
Map<String, Object> out = governTreeService.getTreeTablePage(dto);
|
|
|
// 行数保险丝(artifact.max-rows > 0 时):与业务工具同口径——报错让模型收窄,不静默截断
|
|
|
if (cap > 0) {
|
|
|
@@ -260,15 +251,6 @@ public class GovernTableTool {
|
|
|
description = "多条件连接符:AND(默认)或 OR", required = false)
|
|
|
public String conditionRun;
|
|
|
|
|
|
- /** 排序列 */
|
|
|
- @ToolParam(name = "orderKey",
|
|
|
- description = "排序列名(表列名,可选)", required = false)
|
|
|
- public String orderKey;
|
|
|
-
|
|
|
- /** 是否升序 */
|
|
|
- @ToolParam(name = "asc",
|
|
|
- description = "true=升序,false=降序,默认 false", required = false)
|
|
|
- public Boolean asc;
|
|
|
}
|
|
|
|
|
|
/**
|