fixed: 导出模板调整limit为指针
This commit is contained in:
parent
e9be009f49
commit
5607702be9
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue