fixed: 导出模板调整limit为指针

This commit is contained in:
pixelMax(奇淼
2024-06-27 14:57:01 +08:00
parent bb4e938bd2
commit e9be009f49
3 changed files with 10 additions and 11 deletions

View File

@@ -190,8 +190,8 @@ func (sysExportTemplateService *SysExportTemplateService) ExportExcel(templateID
}
}
// 模板的默认limit
if limit == "" && template.Limit != 0 {
db = db.Limit(template.Limit)
if limit == "" && *template.Limit != 0 {
db = db.Limit(*template.Limit)
}
// 通过参数传入offset