Browse Source

修改排序字段

pull/48/head
zhangxin 3 years ago
parent
commit
851beb3e33
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dao/me/implments/ProductFamilyRelate.dao.impl.go

+ 1
- 1
dao/me/implments/ProductFamilyRelate.dao.impl.go View File

@ -322,6 +322,6 @@ func (impl *ProductFamilyRelateDAOImplement) SelectProductByFamilyId(projectId s
meta.Product_PlantNr.ColumnName,
meta.ProductFamilyRelate_ProductId.ColumnName,
meta.Product_ProductId.ColumnName)
err := impl.session.Table(impl.meta.TableName).Join("LEFT", meta.Product.TableName, condition).Where(where, parameters...).OrderBy(meta.ProductFamilyRelate_Pos.ColumnName).Find(&result)
err := impl.session.Table(impl.meta.TableName).Join("LEFT", meta.Product.TableName, condition).Where(where, parameters...).OrderBy(meta.ProductFamilyRelate_Pos.SortColumnName).Find(&result)
return result, err
}

Loading…
Cancel
Save