fix: 报表导出没有分组时存在空行的情况
This commit is contained in:
parent
1a0b1ad3cc
commit
907e89f973
@ -328,6 +328,8 @@ public class SysReportConfigService : IDynamicApiController, ITransient
|
|||||||
|
|
||||||
int currentRow = 1;
|
int currentRow = 1;
|
||||||
int startCol = 1;
|
int startCol = 1;
|
||||||
|
if (orderedGroups.Any(u => u.Any(p => !string.IsNullOrEmpty(p.GroupTitle))))
|
||||||
|
{
|
||||||
foreach (var group in orderedGroups)
|
foreach (var group in orderedGroups)
|
||||||
{
|
{
|
||||||
int colCount = group.Count();
|
int colCount = group.Count();
|
||||||
@ -337,6 +339,7 @@ public class SysReportConfigService : IDynamicApiController, ITransient
|
|||||||
}
|
}
|
||||||
|
|
||||||
currentRow++;
|
currentRow++;
|
||||||
|
}
|
||||||
|
|
||||||
// 处理列标题(使用Title或FieldName)
|
// 处理列标题(使用Title或FieldName)
|
||||||
var curColIndex = 0;
|
var curColIndex = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user