Signed-off-by: dongpx <2112323174@qq.com>

This commit is contained in:
dongpx
2026-02-05 10:37:57 +08:00
parent a1c91f2959
commit b7ebd3778d
15 changed files with 28 additions and 11 deletions

View File

@@ -1069,6 +1069,9 @@ public class FrameServiceImpl implements IFrameService {
List<Map<String, String>> whereFieldMapList = lideeYunJiMapper.getReportWhereFieldList(reportEntity.getId());
Func.handleWhere(whereFieldMapList, queryWrapper, params);
//处理分组group by=================
Func.handleGroupBy(queryWrapper, params);
return queryWrapper;
}

View File

@@ -906,6 +906,15 @@ public class Func extends FuncBase {
return formatAreaStr(jsonStr);
}
//处理分组
public static void handleGroupBy(SqlInfoQueryWrapper.Wrapper wrapper, Map<String, Object> params){
}
//处理排序
public static void handleOrderBy(SqlInfoQueryWrapper.Wrapper wrapper, Map<String, Object> params, String orderbyConfigStr) {
@@ -1138,6 +1147,11 @@ public class Func extends FuncBase {
});
}
}
if(params.containsKey("Group by")){
String[] str=params.get("Group by").toString().split(",");
wrapper.groupByColumns(str);
}
}