mirror of
https://gitcode.com/flipped-aurora/gin-vue-admin.git
synced 2025-12-30 11:52:26 +00:00
fixed: 导出模板调整limit为指针
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user