|
@@ -25,11 +25,11 @@
|
|
|
p.price price,
|
|
|
(select `name` from sys_dict where id = p.unit and code = 'ProductUnit') unit,
|
|
|
(select `name` from sys_dict where id = p.type and code = 'ProductType') productType,
|
|
|
- p.inventory inventory,
|
|
|
+ p.inventory inventory
|
|
|
from business_item_product i
|
|
|
left join product p on i.product_id = p.id
|
|
|
-- left join sys_dict d on
|
|
|
- where business_id = #{id}
|
|
|
+ where i.business_id = #{id}
|
|
|
</select>
|
|
|
|
|
|
</mapper>
|