New file |
| | |
| | | package com.yeshi.fanli.dao.mybatis.user.cloud; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.bus.user.cloud.UserCloudGoods; |
| | | |
| | | public interface UserCloudGoodsMapper extends BaseMapper<UserCloudGoods> { |
| | | |
| | | /** |
| | | * 删除 |
| | | * @param id |
| | | * @param uid |
| | | */ |
| | | void deleteByPrimaryKeyAndUid(@Param("id") Long id, @Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserCloudGoods> query(@Param("start") long start, @Param("count") int count, |
| | | @Param("key") String key); |
| | | |
| | | long count(@Param("key") String key); |
| | | |
| | | |
| | | /** |
| | | * 查询列表 |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserCloudGoods> listByUid(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid); |
| | | |
| | | long countByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据商品信息查询 |
| | | * @param uid |
| | | * @param goodsId |
| | | * @param goodsType |
| | | * @return |
| | | */ |
| | | UserCloudGoods getByUidAndGoods(@Param("uid")Long uid,@Param("goodsId") Long goodsId, |
| | | @Param("goodsType") Integer goodsType); |
| | | |
| | | /** |
| | | * 根据简版商品id查询 |
| | | * @param uid |
| | | * @param commonId |
| | | * @return |
| | | */ |
| | | UserCloudGoods getByUidAndCommonGoodsId(@Param("uid")Long uid,@Param("commonId") Long commonId); |
| | | |
| | | /** |
| | | * 查询未分享商品 |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | |
| | | List<UserCloudGoods> listByNotShare(@Param("uid")Long uid); |
| | | |
| | | |
| | | } |