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/goods/CollectionGoodsV2Mapper.java | 178 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 89 insertions(+), 89 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CollectionGoodsV2Mapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CollectionGoodsV2Mapper.java index 1412b31..1089e73 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CollectionGoodsV2Mapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CollectionGoodsV2Mapper.java @@ -1,90 +1,90 @@ -package com.yeshi.fanli.dao.mybatis.goods; - -import java.util.List; - -import org.apache.ibatis.annotations.Param; - -import com.yeshi.fanli.entity.goods.CollectionGoodsV2; - -public interface CollectionGoodsV2Mapper { - - int deleteByPrimaryKey(Long id); - - int insert(CollectionGoodsV2 record); - - int insertSelective(CollectionGoodsV2 record); - - CollectionGoodsV2 selectByPrimaryKey(Long id); - - int updateByPrimaryKeySelective(CollectionGoodsV2 record); - - int updateByPrimaryKey(CollectionGoodsV2 record); - - /** - * 鏍规嵁鐢ㄦ埛ID鍜屽晢鍝両D鑾峰彇鏀惰棌璁板綍 - * - * @param uid - * @param commonGoodsId - * @return - */ - CollectionGoodsV2 selectByUidAndCommonGoodsId(@Param("uid") Long uid, @Param("commonGoodsId") Long commonGoodsId); - - /** - * 鏍规嵁鐢ㄦ埛ID鑾峰彇鏀惰棌璁板綍锛屾寜鐓ф敹钘忔椂闂村�掑彊 - * - * @param uid - * @param start - * @param count - * @return - */ - List<CollectionGoodsV2> selectByUidOrderByCreateTimeDesc(@Param("uid") Long uid, @Param("start") long start, - @Param("count") int count, @Param("source")Integer source); - - /** - * 鑾峰彇鏀惰棌鐨勬暟閲� - * - * @param uid - * @return - */ - long selectCountByUid(@Param("uid") Long uid, @Param("source")Integer source); - - - /** - * 鏍规嵁鐢ㄦ埛ID,鍟嗗搧ID锛屽晢鍝佺被鍨嬫煡璇㈠晢鍝� - * - * @param id - * @param goodsType - * @param goodsId - * @return - */ - CollectionGoodsV2 selectByUidAndGoodsId(@Param("uid") Long uid, @Param("goodsId") Long goodsId); - - - /** - * 鏍规嵁鐢ㄦ埛ID,鍟嗗搧ID锛屽晢鍝佺被鍨嬫煡璇㈠晢鍝� - * - * @param id - * @param goodsType - * @param goodsId - * @return - */ - CollectionGoodsV2 selectByUidAndGoodsType(@Param("uid") Long uid, @Param("goodsId") Long goodsId, - @Param("goodsType") Integer goodsType); - - /** - * 鏍规嵁UID鍒犻櫎鏀惰棌 - * - * @param uid - * @return - */ - int deleteByUid(@Param("uid") Long uid); - - /** - * 鐢ㄦ埛id/鏀惰棌绠�鐗堝晢鍝乮d - * @param uid - * @param commonId - * @return - */ - List<CollectionGoodsV2> getByUidAndCommonId(@Param("uid") Long uid, @Param("commonId") Long commonId); - +package com.yeshi.fanli.dao.mybatis.goods; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; + +import com.yeshi.fanli.entity.goods.CollectionGoodsV2; + +public interface CollectionGoodsV2Mapper { + + int deleteByPrimaryKey(Long id); + + int insert(CollectionGoodsV2 record); + + int insertSelective(CollectionGoodsV2 record); + + CollectionGoodsV2 selectByPrimaryKey(Long id); + + int updateByPrimaryKeySelective(CollectionGoodsV2 record); + + int updateByPrimaryKey(CollectionGoodsV2 record); + + /** + * 鏍规嵁鐢ㄦ埛ID鍜屽晢鍝両D鑾峰彇鏀惰棌璁板綍 + * + * @param uid + * @param commonGoodsId + * @return + */ + CollectionGoodsV2 selectByUidAndCommonGoodsId(@Param("uid") Long uid, @Param("commonGoodsId") Long commonGoodsId); + + /** + * 鏍规嵁鐢ㄦ埛ID鑾峰彇鏀惰棌璁板綍锛屾寜鐓ф敹钘忔椂闂村�掑彊 + * + * @param uid + * @param start + * @param count + * @return + */ + List<CollectionGoodsV2> selectByUidOrderByCreateTimeDesc(@Param("uid") Long uid, @Param("start") long start, + @Param("count") int count, @Param("source")Integer source); + + /** + * 鑾峰彇鏀惰棌鐨勬暟閲� + * + * @param uid + * @return + */ + long selectCountByUid(@Param("uid") Long uid, @Param("source")Integer source); + + + /** + * 鏍规嵁鐢ㄦ埛ID,鍟嗗搧ID锛屽晢鍝佺被鍨嬫煡璇㈠晢鍝� + * + * @param id + * @param goodsType + * @param goodsId + * @return + */ + CollectionGoodsV2 selectByUidAndGoodsId(@Param("uid") Long uid, @Param("goodsId") Long goodsId); + + + /** + * 鏍规嵁鐢ㄦ埛ID,鍟嗗搧ID锛屽晢鍝佺被鍨嬫煡璇㈠晢鍝� + * + * @param id + * @param goodsType + * @param goodsId + * @return + */ + CollectionGoodsV2 selectByUidAndGoodsType(@Param("uid") Long uid, @Param("goodsId") Long goodsId, + @Param("goodsType") Integer goodsType); + + /** + * 鏍规嵁UID鍒犻櫎鏀惰棌 + * + * @param uid + * @return + */ + int deleteByUid(@Param("uid") Long uid); + + /** + * 鐢ㄦ埛id/鏀惰棌绠�鐗堝晢鍝乮d + * @param uid + * @param commonId + * @return + */ + List<CollectionGoodsV2> getByUidAndCommonId(@Param("uid") Long uid, @Param("commonId") Long commonId); + } \ No newline at end of file -- Gitblit v1.8.0