| | |
| | | package com.yeshi.fanli.dao.mybatis.user; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.UserGoodsStorage; |
| | | |
| | | public interface UserGoodsStorageMapper { |
| | | |
| | | int deleteByPrimaryKey(Long id); |
| | | |
| | | int insert(UserGoodsStorage record); |
| | | |
| | | int insertSelective(UserGoodsStorage record); |
| | | |
| | | UserGoodsStorage selectByPrimaryKey(Long id); |
| | | |
| | | int updateByPrimaryKeySelective(UserGoodsStorage record); |
| | | |
| | | int updateByPrimaryKey(UserGoodsStorage record); |
| | | |
| | | /** |
| | | * 根据主键批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByPrimaryKey(List<Long> list); |
| | | |
| | | /** |
| | | * 批量选择更新 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int updateBatchSelective(List<UserGoodsStorage> list); |
| | | |
| | | /** |
| | | * 查询用户对应的选品库 |
| | | * @param start |
| | | * @param count |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | List<UserGoodsStorage> listQueryByUid(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid); |
| | | |
| | | long countQueryByUid(@Param("uid") Long uid); |
| | | |
| | | /** |
| | | * 根据用户id、 简版商品 id(CommonGoods.id) |
| | | * @param uid 用户id |
| | | * @param cid 商品id(CommonGoods.id) |
| | | * @return |
| | | */ |
| | | UserGoodsStorage getByUidAndCid(@Param("uid") Long uid, @Param("cid") Long cid); |
| | | |
| | | |
| | | /** |
| | | * 根据主键 、uid 批量删除 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int deleteBatchByUidAndPrimaryKey(@Param("uid") Long uid, @Param("list") List<Long> list); |
| | | |
| | | |
| | | /** |
| | | * 根据用户id、淘宝商品 id |
| | | * @param uid 用户id |
| | | * @param auctionId 淘宝商品 id |
| | | * @return |
| | | */ |
| | | UserGoodsStorage getByUidAndAuctionId(@Param("uid") Long uid, @Param("auctionId") Long auctionId); |
| | | |
| | | |
| | | /** |
| | | * 根据多个主键获取商品 |
| | | * @param list |
| | | * @return |
| | | */ |
| | | List<UserGoodsStorage> listQueryByIds(List<Long> list); |
| | | package com.yeshi.fanli.dao.mybatis.user;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserGoodsStorage;
|
| | |
|
| | | public interface UserGoodsStorageMapper {
|
| | |
|
| | | int deleteByPrimaryKey(Long id);
|
| | |
|
| | | int insert(UserGoodsStorage record);
|
| | |
|
| | | int insertSelective(UserGoodsStorage record);
|
| | |
|
| | | UserGoodsStorage selectByPrimaryKey(Long id);
|
| | |
|
| | | int updateByPrimaryKeySelective(UserGoodsStorage record);
|
| | |
|
| | | int updateByPrimaryKey(UserGoodsStorage record);
|
| | | |
| | | /**
|
| | | * 根据主键批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByPrimaryKey(List<Long> list);
|
| | | |
| | | /**
|
| | | * 批量选择更新
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int updateBatchSelective(List<UserGoodsStorage> list);
|
| | | |
| | | /**
|
| | | * 查询用户对应的选品库
|
| | | * @param start
|
| | | * @param count
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | List<UserGoodsStorage> listQueryByUid(@Param("start") long start, @Param("count") int count, |
| | | @Param("uid") Long uid, @Param("gooodsType") Integer gooodsType);
|
| | | |
| | | long countQueryByUid(@Param("uid") Long uid, @Param("gooodsType") Integer gooodsType);
|
| | | |
| | | /**
|
| | | * 根据用户id、 简版商品 id(CommonGoods.id)
|
| | | * @param uid 用户id
|
| | | * @param cid 商品id(CommonGoods.id)
|
| | | * @return
|
| | | */
|
| | | UserGoodsStorage getByUidAndCid(@Param("uid") Long uid, @Param("cid") Long cid);
|
| | | |
| | | |
| | | /**
|
| | | * 根据主键 、uid 批量删除
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | int deleteBatchByUidAndPrimaryKey(@Param("uid") Long uid, @Param("list") List<Long> list);
|
| | | |
| | | |
| | | /**
|
| | | * 根据用户id、淘宝商品 id
|
| | | * @param uid 用户id
|
| | | * @param auctionId 淘宝商品 id
|
| | | * @return
|
| | | */
|
| | | UserGoodsStorage getByUidAndAuctionId(@Param("uid") Long uid, @Param("auctionId") Long auctionId, @Param("gooodsType") Integer gooodsType);
|
| | | |
| | | |
| | | /**
|
| | | * 根据多个主键获取商品
|
| | | * @param list
|
| | | * @return
|
| | | */
|
| | | List<UserGoodsStorage> listQueryByIds(List<Long> list);
|
| | | |
| | | } |