Commit 2f125ef4 authored by shiyu's avatar shiyu

用户主页商品列表5

parent 7f681717
......@@ -356,9 +356,9 @@
FROM distributor_share_record d
JOIN
(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
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>
</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