|
@@ -10,15 +10,15 @@ import org.apache.ibatis.annotations.Select;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 商品点赞和收藏Mapper接口
|
|
* 商品点赞和收藏Mapper接口
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @author fs
|
|
* @author fs
|
|
* @date 2022-03-15
|
|
* @date 2022-03-15
|
|
*/
|
|
*/
|
|
-public interface FsStoreProductRelationMapper
|
|
|
|
|
|
+public interface FsStoreProductRelationMapper
|
|
{
|
|
{
|
|
/**
|
|
/**
|
|
* 查询商品点赞和收藏
|
|
* 查询商品点赞和收藏
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param id 商品点赞和收藏ID
|
|
* @param id 商品点赞和收藏ID
|
|
* @return 商品点赞和收藏
|
|
* @return 商品点赞和收藏
|
|
*/
|
|
*/
|
|
@@ -26,7 +26,7 @@ public interface FsStoreProductRelationMapper
|
|
|
|
|
|
/**
|
|
/**
|
|
* 查询商品点赞和收藏列表
|
|
* 查询商品点赞和收藏列表
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param fsStoreProductRelation 商品点赞和收藏
|
|
* @param fsStoreProductRelation 商品点赞和收藏
|
|
* @return 商品点赞和收藏集合
|
|
* @return 商品点赞和收藏集合
|
|
*/
|
|
*/
|
|
@@ -34,7 +34,7 @@ public interface FsStoreProductRelationMapper
|
|
|
|
|
|
/**
|
|
/**
|
|
* 新增商品点赞和收藏
|
|
* 新增商品点赞和收藏
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param fsStoreProductRelation 商品点赞和收藏
|
|
* @param fsStoreProductRelation 商品点赞和收藏
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@@ -42,7 +42,7 @@ public interface FsStoreProductRelationMapper
|
|
|
|
|
|
/**
|
|
/**
|
|
* 修改商品点赞和收藏
|
|
* 修改商品点赞和收藏
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param fsStoreProductRelation 商品点赞和收藏
|
|
* @param fsStoreProductRelation 商品点赞和收藏
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@@ -50,7 +50,7 @@ public interface FsStoreProductRelationMapper
|
|
|
|
|
|
/**
|
|
/**
|
|
* 删除商品点赞和收藏
|
|
* 删除商品点赞和收藏
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param id 商品点赞和收藏ID
|
|
* @param id 商品点赞和收藏ID
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@@ -58,7 +58,7 @@ public interface FsStoreProductRelationMapper
|
|
|
|
|
|
/**
|
|
/**
|
|
* 批量删除商品点赞和收藏
|
|
* 批量删除商品点赞和收藏
|
|
- *
|
|
|
|
|
|
+ *
|
|
* @param ids 需要删除的数据ID
|
|
* @param ids 需要删除的数据ID
|
|
* @return 结果
|
|
* @return 结果
|
|
*/
|
|
*/
|
|
@@ -76,7 +76,7 @@ public interface FsStoreProductRelationMapper
|
|
"</script>"})
|
|
"</script>"})
|
|
List<FsStoreProductRelationQueryVO> selectFsStoreProductRelationListVOQuery(@Param("maps") FsStoreProductRelationQueryParam param);
|
|
List<FsStoreProductRelationQueryVO> selectFsStoreProductRelationListVOQuery(@Param("maps") FsStoreProductRelationQueryParam param);
|
|
@Select({"<script> " +
|
|
@Select({"<script> " +
|
|
- "select p.image,p.product_name,p.price,r.*,u.nickname,u.phone from fs_store_product_relation r left join fs_store_product p on p.product_id=r.product_id left join fs_user u on u.user_id=r.user_id " +
|
|
|
|
|
|
+ "select p.image,p.product_name,p.price,r.*,u.nickname,u.phone from fs_store_product_relation r inner join fs_store_product p on p.product_id=r.product_id inner join fs_user u on u.user_id=r.user_id " +
|
|
"where r.is_del=0 " +
|
|
"where r.is_del=0 " +
|
|
"<if test = 'maps.userId != null '> " +
|
|
"<if test = 'maps.userId != null '> " +
|
|
"and r.user_id =#{maps.userId} " +
|
|
"and r.user_id =#{maps.userId} " +
|