|
|
@@ -562,7 +562,7 @@ func GetClientTableColumns(tableKey string, tableType int) ([]Tablecolumnconfig,
|
|
|
tablecolumnconfigs := make([]Tablecolumnconfig, 0)
|
|
|
// 这里的表名必须要大写 (Oracle的表名都是大写)
|
|
|
if err := engine.Join("INNER", "TABLEDEFINE", "TABLEDEFINE.TableKey = TABLECOLUMNCONFIG.TableKey").
|
|
|
- Where("TABLEDEFINE.TableType = ?", tableType).And("TABLEDEFINE.TableKey = ?", tableKey).Find(&tablecolumnconfigs); err != nil {
|
|
|
+ Where("TABLEDEFINE.TableType = ?", tableType).And("TABLEDEFINE.TableKey = ?", tableKey).OrderBy("TABLECOLUMNCONFIG.ORDERINDEX").Find(&tablecolumnconfigs); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
|