Skip to content

Commit 2ec2e9a

Browse files
luodaolvpixelmaxQm
andauthored
Update service.go.tpl (#2053)
fix 排序时错误获取失败:错误: 字段 "createdat" 不存在 (SQLSTATE 42703) --------- Co-authored-by: PiexlMax(奇淼 <165128580+pixelmaxQm@users.noreply.github.com>
1 parent bf095c3 commit 2ec2e9a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

server/resource/package/server/service/service.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func ({{.Abbreviation}}Service *{{.StructName}}Service)Get{{.StructName}}InfoLis
162162
orderMap := make(map[string]bool)
163163
{{- if .GvaModel }}
164164
orderMap["id"] = true
165-
orderMap["CreatedAt"] = true
165+
orderMap["created_at"] = true
166166
{{- end }}
167167
{{- range .Fields}}
168168
{{- if .Sort}}

server/resource/plugin/server/service/service.go.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func (s *{{.Abbreviation}}) Get{{.StructName}}InfoList(ctx context.Context, info
169169
orderMap := make(map[string]bool)
170170
{{- if .GvaModel }}
171171
orderMap["id"] = true
172-
orderMap["CreatedAt"] = true
172+
orderMap["created_at"] = true
173173
{{- end }}
174174
{{- range .Fields}}
175175
{{- if .Sort}}

0 commit comments

Comments
 (0)