|
@@ -238,14 +238,16 @@ public interface FsStoreProductMapper
|
|
|
|
|
|
|
|
@Select({"<script> " +
|
|
@Select({"<script> " +
|
|
|
"SELECT fsp.* FROM fs_store_product fsp " +
|
|
"SELECT fsp.* FROM fs_store_product fsp " +
|
|
|
- " left join fs_store_product_attr_value fspav on fsp.product_id = fspav.product_id " +
|
|
|
|
|
- "WHERE fsp.is_show = 1 and (fspav.bar_code is not null) and " +
|
|
|
|
|
- " fsp.product_id NOT IN (" +
|
|
|
|
|
- " SELECT product_id FROM live_goods " +
|
|
|
|
|
- " WHERE live_id = #{maps.liveId} " +
|
|
|
|
|
- ") " +
|
|
|
|
|
|
|
+ "WHERE fsp.is_show = 1 " +
|
|
|
|
|
+ "AND EXISTS (" +
|
|
|
|
|
+ " SELECT 1 FROM fs_store_product_attr_value fspav " +
|
|
|
|
|
+ " WHERE fspav.product_id = fsp.product_id " +
|
|
|
|
|
+ ") " +
|
|
|
|
|
+ "AND fsp.product_id NOT IN (" +
|
|
|
|
|
+ " SELECT product_id FROM live_goods WHERE live_id = #{maps.liveId}" +
|
|
|
|
|
+ ") " +
|
|
|
"<if test = 'maps.keywords != null'> " +
|
|
"<if test = 'maps.keywords != null'> " +
|
|
|
- " and fsp.product_name like CONCAT('%',#{maps.keywords},'%') " +
|
|
|
|
|
|
|
+ " AND fsp.product_name LIKE CONCAT('%',#{maps.keywords},'%') " +
|
|
|
"</if>" +
|
|
"</if>" +
|
|
|
"</script>"})
|
|
"</script>"})
|
|
|
List<FsStoreProductListVO> liveList(@Param("maps") LiveGoods maps);
|
|
List<FsStoreProductListVO> liveList(@Param("maps") LiveGoods maps);
|