|
|
@@ -190,7 +190,7 @@
|
|
|
where ur.deleted is true
|
|
|
group by ur.account_id, ur.relation_id) s
|
|
|
group by s.account_id) s
|
|
|
- left join account a on a.id = s.account_id
|
|
|
+ inner join account a on a.id = s.account_id
|
|
|
left join groups_trips gt on gt.account_id = s.account_id
|
|
|
left join goods_don g on g.id = a.goods_id
|
|
|
where s.num >= gt.num
|