Skip to content

Commit

Permalink
fixed: 导出模板调整limit为指针
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelmaxQm committed Jun 27, 2024
1 parent e9be009 commit 5607702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/service/system/sys_export_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (sysExportTemplateService *SysExportTemplateService) ExportExcel(templateID
}
}
// 模板的默认limit
if limit == "" && *template.Limit != 0 {
if limit == "" && template.Limit != nil && *template.Limit != 0 {
db = db.Limit(*template.Limit)
}

Expand Down

0 comments on commit 5607702

Please sign in to comment.