@Select("select * from goods_spu a left join opration_floor_goods b on a.goods_id = b.goods_id where b.operation_floor_id = #{operationFloorId} and a.status = 1 and b.status = 0 order by display_order asc limit ${start},${end}")
@Select("select * from goods_spu a left join opration_floor_goods b on a.goods_id = b.goods_id where b.operation_floor_id = #{operationFloorId} and a.status in (1, 10) and b.status = 0 order by display_order asc limit ${start},${end}")
@Select("select count(*) from goods_spu a left join opration_floor_goods b on a.goods_id = b.goods_id where b.operation_floor_id = #{operationFloorId} and a.status = 1 and b.status = 0")
@Select("select count(*) from goods_spu a left join opration_floor_goods b on a.goods_id = b.goods_id where b.operation_floor_id = #{operationFloorId} and a.status in (1, 10) and b.status = 0")
select a.*,c.shop_name as merchantName,c.* from goods_spu a left join goods_count b on a.goods_id = b.goods_id left join shop c on a.merchant_id = c.merchant_id
select a.*,c.shop_name as merchantName,c.* from goods_spu a left join goods_count b on a.goods_id = b.goods_id left join shop c on a.merchant_id = c.merchant_id
left join goods_category_spu d on d.goods_id = a.goods_id where d.category_id = #{categoryId} and a.status = 1 order by a.default_price ${price},b.sales ${sale},a.create_time desc limit ${start},${end};
left join goods_category_spu d on d.goods_id = a.goods_id where d.category_id = #{categoryId} and a.status in (1,10) order by a.default_price ${price},b.sales ${sale},a.create_time desc limit ${start},${end};
select a.*,c.shop_name as merchantName,c.* from goods_spu a left join goods_count b on a.goods_id = b.goods_id left join shop c on a.merchant_id = c.merchant_id
select a.*,c.shop_name as merchantName,c.* from goods_spu a left join goods_count b on a.goods_id = b.goods_id left join shop c on a.merchant_id = c.merchant_id
where a.name like #{searchKey} and a.status = 1 order by a.default_price ${price},b.sales ${sale},a.create_time desc limit ${start},${end};
where a.name like #{searchKey} and a.status in (1,10) order by a.default_price ${price},b.sales ${sale},a.create_time desc limit ${start},${end};
select a.*,c.shop_name as merchantName,c.* from goods_spu a left join goods_count b on a.goods_id = b.goods_id left join shop c on a.merchant_id = c.merchant_id
select a.*,c.shop_name as merchantName,c.* from goods_spu a left join goods_count b on a.goods_id = b.goods_id left join shop c on a.merchant_id = c.merchant_id
where a.goods_id = #{goodsId} and a.status = 1;
where a.goods_id = #{goodsId} and a.status in (1, 10);