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/CommonGoodsMapper.java |   64 +++++++++++++++++++++----------
 1 files changed, 43 insertions(+), 21 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CommonGoodsMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CommonGoodsMapper.java
index b05cab7..fd3d7a9 100644
--- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CommonGoodsMapper.java
+++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/goods/CommonGoodsMapper.java
@@ -1,22 +1,44 @@
-package com.yeshi.fanli.dao.mybatis.goods;
-
-import org.apache.ibatis.annotations.Param;
-
-import com.yeshi.fanli.goods.CommonGoods;
-
-public interface CommonGoodsMapper {
-
-	int deleteByPrimaryKey(Long id);
-
-	int insert(CommonGoods record);
-
-	int insertSelective(CommonGoods record);
-
-	CommonGoods selectByPrimaryKey(Long id);
-
-	CommonGoods selectByGoodsIdAndGoodsType(@Param("goodsId") Long goodsId, @Param("goodsType") int goodsType);
-
-	int updateByPrimaryKeySelective(CommonGoods record);
-
-	int updateByPrimaryKey(CommonGoods record);
+package com.yeshi.fanli.dao.mybatis.goods;
+
+import java.util.List;
+
+import org.apache.ibatis.annotations.Param;
+
+import com.yeshi.fanli.dao.BaseMapper;
+import com.yeshi.fanli.entity.goods.CommonGoods;
+
+public interface CommonGoodsMapper extends BaseMapper<CommonGoods> {
+
+	/**
+	 * 鏍规嵁鍟嗗搧ID鏌ヨ
+	 * @param goodsId
+	 * @param goodsType
+	 * @return
+	 */
+	CommonGoods selectByGoodsIdAndGoodsType(@Param("goodsId") Long goodsId, @Param("goodsType") Integer goodsType);
+
+	
+	/**
+	 * 鏍规嵁搴楅摵id鏌ヨ 鏈�鏂�5涓�
+	 * @param goodsId
+	 * @return
+	 */
+	List<CommonGoods> listBySellerId(@Param("sellerId") Long sellerId, @Param("goodsType") Integer goodsType);
+	
+	/**
+	 * 缁熻搴楅摵鍟嗗搧鏈夊埜鏁伴噺
+	 * @param sellerId
+	 * @return
+	 */
+	long countBySellerIdAndHasCoupon(@Param("sellerId") Long sellerId,  @Param("goodsType") Integer goodsType);
+	
+	
+	/**
+	 * 鎵归噺鍟嗗搧id鏌ヨ鍟嗗搧淇℃伅
+	 * @param list
+	 * @return
+	 */
+	List<CommonGoods> getByListGoodsId(@Param("list") List<Long> list,  @Param("goodsType") Integer goodsType);
+		
+	
 }
\ No newline at end of file

--
Gitblit v1.8.0