Skip to content

Commit

Permalink
fix:rbum item attr find inner join item.
Browse files Browse the repository at this point in the history
  • Loading branch information
ljl committed Mar 25, 2024
1 parent 23fd327 commit 71fc452
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions basic/src/rbum/serv/rbum_item_serv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1100,13 +1100,13 @@ impl RbumCrudOperation<rbum_item_attr::ActiveModel, RbumItemAttrAddReq, RbumItem
(rbum_item_attr::Entity, rbum_item_attr::Column::CreateTime),
(rbum_item_attr::Entity, rbum_item_attr::Column::UpdateTime),
])
.expr_as(Expr::col((rbum_item::Entity, rbum_item::Column::Name)), Alias::new("rel_rbum_item_name"))
// .expr_as(Expr::col((rbum_item::Entity, rbum_item::Column::Name)), Alias::new("rel_rbum_item_name"))
.expr_as(Expr::col((rbum_kind_attr::Entity, rbum_kind_attr::Column::Name)), Alias::new("rel_rbum_kind_attr_name"))
.from(rbum_item_attr::Entity)
.inner_join(
rbum_item::Entity,
Expr::col((rbum_item::Entity, rbum_item::Column::Id)).equals((rbum_item_attr::Entity, rbum_item_attr::Column::RelRbumItemId)),
)
// .inner_join(
// rbum_item::Entity,
// Expr::col((rbum_item::Entity, rbum_item::Column::Id)).equals((rbum_item_attr::Entity, rbum_item_attr::Column::RelRbumItemId)),
// )
.inner_join(
rbum_kind_attr::Entity,
Expr::col((rbum_kind_attr::Entity, rbum_kind_attr::Column::Id)).equals((rbum_item_attr::Entity, rbum_item_attr::Column::RelRbumKindAttrId)),
Expand Down

0 comments on commit 71fc452

Please sign in to comment.