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