From 51a4ff5d777028d52a19c314a99f796334cb7b51 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 23 十一月 2019 18:30:01 +0800 Subject: [PATCH] 配置文件修改 --- fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoGoodsBriefMapper.java | 49 +++++++++++++++++++++++++++++++++++++------------ 1 files changed, 37 insertions(+), 12 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoGoodsBriefMapper.java b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoGoodsBriefMapper.java index a798214..fa5c38c 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoGoodsBriefMapper.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/mybatis/taobao/TaoBaoGoodsBriefMapper.java @@ -5,23 +5,20 @@ import org.apache.ibatis.annotations.Param; +import com.yeshi.fanli.dao.BaseMapper; import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief; -public interface TaoBaoGoodsBriefMapper { +public interface TaoBaoGoodsBriefMapper extends BaseMapper<TaoBaoGoodsBrief>{ - int deleteByPrimaryKey(Long id); int deleteByAuctionId(Long auctionId); - int insert(TaoBaoGoodsBrief record); - - int insertSelective(TaoBaoGoodsBrief record); - - TaoBaoGoodsBrief selectByPrimaryKey(Long id); - - int updateByPrimaryKeySelective(TaoBaoGoodsBrief record); - - int updateByPrimaryKey(TaoBaoGoodsBrief record); + /* + * 鏍规嵁鍟嗗搧id 鎵归噺鍒犻櫎 + * @param list + */ + void deleteBatchByGoodsId(List<Long> list); + /** * 鏍规嵁auctionId 鏌ヨ鍟嗗搧淇℃伅 @@ -46,6 +43,15 @@ * @return */ List<TaoBaoGoodsBrief> queryGoodsByAuctionId(List<Long> list); + + + /** + * 鏍规嵁澶氫釜auctionId鏄惁宸插瓨鍦� + * + * @param list + * @return + */ + List<Long> listExistById(List<Long> list); /** * 鎵归噺鏇存柊 @@ -71,5 +77,24 @@ List<Long> queryCanDeleteGoods(@Param("maxTime") Date maxTime,@Param("start")int start,@Param("count")int count); Long queryCanDeleteGoodsCount(@Param("maxTime") Date maxTime); - + + + /** + * 鏍规嵁搴楅摵淇℃伅鑾峰彇鍟嗗搧 + * @param start + * @param count + * @param shopId + * @return + */ + List<TaoBaoGoodsBrief> listByShopId(@Param("start") long start, @Param("count") int count, + @Param("shopId") Long shopId); + + long countByShopId(@Param("shopId") Long shopId); + + + /** + * 闀挎椂闂存湭鏇存柊鐨勫晢鍝� + */ + List<Long> listNeedUpdateGoodsId(@Param("start") long start, @Param("count") int count, @Param("hour") int hour); + } \ No newline at end of file -- Gitblit v1.8.0