Skip to content

Commit

Permalink
fix: 修复关联模式下的sql语句bug
Browse files Browse the repository at this point in the history
  • Loading branch information
piexlMax(奇淼 committed Oct 30, 2024
1 parent 0dc66ad commit 4a70b38
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 @@ -168,7 +168,7 @@ func (sysExportTemplateService *SysExportTemplateService) ExportExcel(templateID

if len(template.JoinTemplate) > 0 {
for _, join := range template.JoinTemplate {
db = db.Joins(join.JOINS + join.Table + " ON " + join.ON)
db = db.Joins(join.JOINS + " " + join.Table + " ON " + join.ON)
}
}

Expand Down

0 comments on commit 4a70b38

Please sign in to comment.