fixed: 导出模板调整limit为指针
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user