提交v2.6.7版本,修复Sort使用的字段bug。

This commit is contained in:
piexlMax
2023-08-09 15:59:58 +08:00
parent 50b524fa7a
commit 7c2751ad37
5 changed files with 5 additions and 5 deletions
@@ -117,7 +117,7 @@ func ({{.Abbreviation}}Service *{{.StructName}}Service)Get{{.StructName}}InfoLis
orderMap := make(map[string]bool)
{{- range .Fields}}
{{- if .Sort}}
orderMap["{{.FieldJson}}"] = true
orderMap["{{.ColumnName}}"] = true
{{- end}}
{{- end}}
if orderMap[info.Sort] {