Browse Source

修改排序字段名

pull/313/head
zhangxin 3 years ago
parent
commit
791d419b8d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      dao/om/implments/DemandLst.dao.impl.go

+ 1
- 1
dao/om/implments/DemandLst.dao.impl.go View File

@ -309,7 +309,7 @@ func (impl *DemandLstDAOImplement) UpdateWhere(predicates []grmi.Predicate, enti
*
******************************************************************************/
func (impl *DemandLstDAOImplement) SelectAndOrderBy(id int, dependOn string) ([]model.DemandLst, error) {
sql := fmt.Sprintf(`select * from %s where %s = %d order by convert(int,serial),seq`, impl.meta.TableName, dependOn, id)
sql := fmt.Sprintf(`select * from %s where %s = %d order by convert(int,Serial),Seq`, impl.meta.TableName, dependOn, id)
result := make([]model.DemandLst, 0)
err := impl.session.Table(impl.meta.TableName).SQL(sql).Find(&result)
return result, err


Loading…
Cancel
Save