fix: 修复关联模式下的sql语句bug
This commit is contained in:
parent
0dc66adc0d
commit
4a70b38a99
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue