| | |
| | | package com.yeshi.fanli.dao.mybatis.share; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsGroup; |
| | | |
| | | public interface UserShareGoodsGroupMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserShareGoodsGroup record); |
| | | |
| | | int insertSelective(UserShareGoodsGroup record); |
| | | |
| | | UserShareGoodsGroup selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(UserShareGoodsGroup record); |
| | | |
| | | int updateByPrimaryKey(UserShareGoodsGroup record); |
| | | |
| | | /** |
| | | * 批量插入 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int insertBatch(List<UserShareGoodsGroup> list); |
| | | |
| | | |
| | | /** |
| | | * 查询分享商品 |
| | | * @param recordId |
| | | * @return |
| | | */ |
| | | List<UserShareGoodsGroup> listByRecordId(@Param("recordId") Long recordId); |
| | | |
| | | /** |
| | | * 查询单个商品 判断是否单个商品分享 |
| | | * @param recordId |
| | | * @return |
| | | */ |
| | | UserShareGoodsGroup getSingleGoods(@Param("cid") Long cid, @Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 查询最新更新的商品 |
| | | * @param cid |
| | | * @param auctionId |
| | | * @return |
| | | */ |
| | | UserShareGoodsGroup getNewestRecord (@Param("uid") Long uid, @Param("auctionId") Long auctionId); |
| | | package com.yeshi.fanli.dao.mybatis.share;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsGroup;
|
| | | import com.yeshi.fanli.entity.bus.share.UserShareGoodsRecord.ShareSourceTypeEnum;
|
| | |
|
| | | public interface UserShareGoodsGroupMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserShareGoodsGroup record);
|
| | |
|
| | | int insertSelective(UserShareGoodsGroup record);
|
| | |
|
| | | UserShareGoodsGroup selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserShareGoodsGroup record);
|
| | |
|
| | | int updateByPrimaryKey(UserShareGoodsGroup record);
|
| | | |
| | | /**
|
| | | * 批量插入
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int insertBatch(List<UserShareGoodsGroup> list);
|
| | | |
| | | |
| | | /**
|
| | | * 批量选择更新
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<UserShareGoodsGroup> list);
|
| | | |
| | | /**
|
| | | * 查询分享商品
|
| | | * @param recordId
|
| | | * @return
|
| | | */
|
| | | List<UserShareGoodsGroup> listByRecordId(@Param("recordId") Long recordId,@Param("notBackSuVip") boolean notBackSuVip);
|
| | | |
| | | /**
|
| | | * 查询单个商品 判断是否单个商品分享
|
| | | * @param recordId
|
| | | * @return
|
| | | */
|
| | | UserShareGoodsGroup getSingleGoods(@Param("source") ShareSourceTypeEnum source, @Param("cid") Long cid, @Param("uid") Long uid);
|
| | | |
| | | /**
|
| | | * 查询最新更新的商品
|
| | | * @param cid
|
| | | * @param auctionId
|
| | | * @return
|
| | | */
|
| | | UserShareGoodsGroup getNewestRecord (@Param("uid") Long uid, @Param("goodsId") Long goodsId, @Param("goodsType") Integer goodsType);
|
| | | } |