Commit 2f125ef4 authored by shiyu's avatar shiyu

用户主页商品列表5

parent 7f681717
...@@ -356,9 +356,9 @@ ...@@ -356,9 +356,9 @@
FROM distributor_share_record d FROM distributor_share_record d
JOIN JOIN
(SELECT item_id, MAX(price) as max_amount (SELECT item_id, MAX(price) as max_amount
FROM distributor_share_record FROM distributor_share_record where `distributor_id` = #{distributorId} AND enabled =1
GROUP BY item_id) t GROUP BY item_id) t
ON d.item_id = t.item_id AND price = t.max_amount where d.distributor_id = #{distributorId} AND d.enabled =1; ON d.item_id = t.item_id AND price = t.max_amount where d.distributor_id = #{distributorId};
</select> </select>
</mapper> </mapper>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment