fix: 修复关联模式下的sql语句bug
This commit is contained in:
@@ -168,7 +168,7 @@ func (sysExportTemplateService *SysExportTemplateService) ExportExcel(templateID
|
|||||||
|
|
||||||
if len(template.JoinTemplate) > 0 {
|
if len(template.JoinTemplate) > 0 {
|
||||||
for _, join := range template.JoinTemplate {
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user