From f4a0f2acc63d7785eab108419a4e16f5f688cb95 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期六, 18 一月 2020 12:06:27 +0800 Subject: [PATCH] 用户注册信息 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserGoodsStorageMapper.java | 161 +++++++++++++++++++++++++++-------------------------- 1 files changed, 81 insertions(+), 80 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserGoodsStorageMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserGoodsStorageMapper.java index be989ba..eb62c68 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserGoodsStorageMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/user/UserGoodsStorageMapper.java @@ -1,81 +1,82 @@ -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); - - - /** - * 鏍规嵁涓婚敭 銆乽id 鎵归噺鍒犻櫎 - * @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); + + + /** + * 鏍规嵁涓婚敭 銆乽id 鎵归噺鍒犻櫎 + * @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); + } \ No newline at end of file -- Gitblit v1.8.0