作者 yangfu

业务表同步

@@ -177,7 +177,12 @@ func (tableService *TableService) GenerateBusinessTable(ctx *domain.Context, cmd @@ -177,7 +177,12 @@ func (tableService *TableService) GenerateBusinessTable(ctx *domain.Context, cmd
177 continue 177 continue
178 } 178 }
179 var filedName = f.FieldZhName 179 var filedName = f.FieldZhName
180 - if cmd.ShowTableFieldNameBy == 0 && filedName == "" { 180 + // 使用备注名
  181 + if cmd.ShowTableFieldNameBy == 0 {
  182 + filedName = f.FieldEnName
  183 + }
  184 + // 字段为空时显示原字段名
  185 + if cmd.ShowTableFieldNameBy == 1 && filedName == "" {
181 filedName = f.FieldEnName 186 filedName = f.FieldEnName
182 } 187 }
183 fields = append(fields, &domain.Field{ 188 fields = append(fields, &domain.Field{