|
|
@@ -170,7 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectProductListByLiveId" parameterType="LiveGoods" resultType="com.fs.live.vo.LiveGoodsVo">
|
|
|
|
|
|
- select lg.goods_id,sp.image as img_url,sp.product_name,sp.price,sp.stock,lg.sales,lg.status,sp.product_id,sp.ot_price,case when lg.is_show = 1 then true else false end as is_show
|
|
|
+ select lg.goods_id,sp.images as img_url,sp.product_name,sp.price,sp.stock,lg.sales,lg.status,sp.product_id,sp.ot_price,case when lg.is_show = 1 then true else false end as is_show
|
|
|
<if test="companyUserId != null "> ,if(uf.favorite_id is not null, true, false) is_favorite </if>
|
|
|
|
|
|
from live_goods lg
|
|
|
@@ -197,7 +197,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectProductListByLiveIdAll" parameterType="LiveGoods" resultType="com.fs.live.vo.LiveGoodsVo">
|
|
|
|
|
|
- select lg.goods_id,sp.image as img_url,sp.product_name,sp.price,lg.stock,lg.sales,lg.status,sp.product_id,sp.ot_price,case when lg.is_show = 1 then true else false end as is_show,sp.is_show as fs_status
|
|
|
+ select lg.goods_id,sp.images as img_url,sp.product_name,sp.price,lg.stock,lg.sales,lg.status,sp.product_id,sp.ot_price,case when lg.is_show = 1 then true else false end as is_show,sp.is_show as fs_status
|
|
|
from live_goods lg
|
|
|
left join fs_store_product sp
|
|
|
ON lg.product_id = sp.product_id
|
|
|
@@ -217,7 +217,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectLiveGoodsVoByGoodsId" resultType="com.fs.live.vo.LiveGoodsVo">
|
|
|
|
|
|
- select lg.goods_id,sp.image as img_url,sp.product_name,sp.price,lg.stock,lg.sales,lg.status,sp.product_id,sp.ot_price, case when lg.is_show = 1 then true else false end as is_show,sp.is_show as fs_status
|
|
|
+ select lg.goods_id,sp.images as img_url,sp.product_name,sp.price,lg.stock,lg.sales,lg.status,sp.product_id,sp.ot_price, case when lg.is_show = 1 then true else false end as is_show,sp.is_show as fs_status
|
|
|
from live_goods lg
|
|
|
left join fs_store_product sp
|
|
|
ON lg.product_id = sp.product_id
|
|
|
@@ -229,7 +229,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="showGoods" resultType="com.fs.live.vo.LiveGoodsVo">
|
|
|
|
|
|
- select lg.goods_id,sp.image as img_url,sp.product_name,sp.price,lg.stock,lg.sales,lg.status,sp.product_id,sp.ot_price, case when lg.is_show = 1 then true else false end as is_show,sp.is_show as fs_status
|
|
|
+ select lg.goods_id,sp.images as img_url,sp.product_name,sp.price,lg.stock,lg.sales,lg.status,sp.product_id,sp.ot_price, case when lg.is_show = 1 then true else false end as is_show,sp.is_show as fs_status
|
|
|
from live_goods lg
|
|
|
left join fs_store_product sp
|
|
|
ON lg.product_id = sp.product_id
|
|
|
@@ -256,7 +256,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectProductListByOrder" parameterType="com.fs.live.domain.LiveOrder" resultType="com.fs.live.vo.LiveGoodsVo">
|
|
|
|
|
|
- select sp.image as img_url,sp.product_name,sp.price,sp.stock,sp.sales,sp.product_id,sp.ot_price, sp.is_show as fs_status,sp.bar_code
|
|
|
+ select sp.images as img_url,sp.product_name,sp.price,sp.stock,sp.sales,sp.product_id,sp.ot_price, sp.is_show as fs_status,sp.bar_code
|
|
|
from fs_store_product sp
|
|
|
<where>
|
|
|
sp.product_id = #{productId}
|
|
|
@@ -267,7 +267,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select
|
|
|
g.*,
|
|
|
if(uf.favorite_id is not null, true, false) isFavorite,
|
|
|
- p.image as img_url, p.product_name, p.price, g.sales, p.ot_price,p.is_show as fs_status
|
|
|
+ p.images as img_url, p.product_name, p.price, g.sales, p.ot_price,p.is_show as fs_status
|
|
|
from live_goods g
|
|
|
left join fs_store_product p on p.product_id = g.product_id and p.is_show = 1
|
|
|
left join live_user_favorite uf on uf.product_id = g.goods_id and uf.user_id = #{params.userId}
|