mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-11 11:43:46 +08:00
fix 优化deleted_by字段的crud生成功能
fix 优化数据`hotgo.sql`文件字段默认值和初始数据 fix 修复web端字典空数据可能引发的潜在问题
This commit is contained in:
@@ -256,7 +256,7 @@ func IsSelectFormMode(formMode string) bool {
|
||||
|
||||
func HasColumn(fields []*sysin.GenCodesColumnListModel, column string) bool {
|
||||
for _, field := range fields {
|
||||
if field.GoName == column {
|
||||
if field.Name == column {
|
||||
return true
|
||||
}
|
||||
}
|
||||
@@ -273,14 +273,14 @@ func HasColumnWithFormMode(fields []*sysin.GenCodesColumnListModel, formMode str
|
||||
}
|
||||
|
||||
func HasMaxSort(fields []*sysin.GenCodesColumnListModel) bool {
|
||||
return HasColumn(fields, "Sort")
|
||||
return HasColumn(fields, "sort")
|
||||
}
|
||||
|
||||
func HasStatus(headOps []string, fields []*sysin.GenCodesColumnListModel) bool {
|
||||
if !gstr.InArray(headOps, "status") {
|
||||
return false
|
||||
}
|
||||
return HasColumn(fields, "Status")
|
||||
return HasColumn(fields, "status")
|
||||
}
|
||||
|
||||
func HasSwitch(fields []*sysin.GenCodesColumnListModel) bool {
|
||||
|
||||
Reference in New Issue
Block a user