Signed-off-by: dongpx <2112323174@qq.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user