|
@@ -261,7 +261,7 @@
|
|
|
m.type = 1
|
|
|
GROUP BY c.goods_id ) ge on cgg.goods_id = ge.goods_id
|
|
|
LEFT JOIN `user` u ON u.user_id = cgu.user_id
|
|
|
- LEFT JOIN user_profile up on u.user_id =up.user_id and up.goods_id = cgg.goods_id and up.type_status=1 and up.current_status = 1
|
|
|
+ LEFT JOIN user_profile up on u.user_id =up.user_id and up.goods_id = cgg.goods_id and up.type_status=1 and up.current_status = 1 and up.change_status = 1
|
|
|
LEFT JOIN goods g on cgg.goods_id = g.goods_id
|
|
|
where 1=1
|
|
|
and cgu.`status` =1
|