From dcfd801ea435c1c87ed47f2ee24cdabaaf230d6f Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 31 三月 2020 12:15:56 +0800
Subject: [PATCH] 大淘客商品过滤修改
---
fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/SwiperPictureService.java | 79 ++++++++++++++++++++++++++++++---------
1 files changed, 60 insertions(+), 19 deletions(-)
diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/SwiperPictureService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/SwiperPictureService.java
index f010b9b..b525e19 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/SwiperPictureService.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/SwiperPictureService.java
@@ -1,7 +1,5 @@
package com.yeshi.fanli.service.inter.homemodule;
-
-
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
@@ -11,17 +9,17 @@
public interface SwiperPictureService {
+ public int insertSelective(SwiperPicture record);
- public int insertSelective(SwiperPicture record) throws SwiperPictureException;
+ public SwiperPicture selectByPrimaryKey(Long id);
- public SwiperPicture selectByPrimaryKey(Long id) throws SwiperPictureException;
+ public int updateByPrimaryKeySelective(SwiperPicture record);
- public int updateByPrimaryKeySelective(SwiperPicture record) throws SwiperPictureException;
+ public int updateByPrimaryKey(SwiperPicture record);
- public int updateByPrimaryKey(SwiperPicture record) throws SwiperPictureException;
-
/**
* 鏌ヨ
+ *
* @param start
* @param count
* @param bannerId
@@ -29,46 +27,52 @@
* @throws SwiperPictureException
*/
public List<SwiperPicture> queryByBannerID(long start, int count, Long bannerId) throws SwiperPictureException;
-
+
public long countQueryByBannerID(Long bannerId) throws SwiperPictureException;
-
+
/**
* 鎵归噺鍒犻櫎
- * @param list 涓婚敭id
+ *
+ * @param list
+ * 涓婚敭id
* @return
* @throws SwiperPictureException
*/
public int deleteBatchByPrimaryKey(List<Long> list) throws SwiperPictureException;
-
+
/**
- * 鎵归噺鍒犻櫎
- * @param list 绠$悊id
+ * 鎵归噺鍒犻櫎
+ *
+ * @param list
+ * 绠$悊id
* @return
* @throws SwiperPictureException
*/
public int deleteBatchByBannerID(List<Long> list) throws SwiperPictureException;
-
/**
* 鏍规嵁绠$悊id闆嗗悎 鏌ヨ
+ *
* @param list
* @return
* @throws Exception
*/
public List<SwiperPicture> queryByListBannerID(List<Long> list) throws Exception;
-
+
/**
* 鑾峰彇闄勮繎鎺掑簭鍊�
+ *
* @param bannerId
* @param type
* @param order
* @return
* @throws SwiperPictureException
*/
- public List<SwiperPicture> getOrderByBannerID(Long bannerId, Integer type, Integer order) throws SwiperPictureException;
+ public List<SwiperPicture> getOrderByBannerID(Long bannerId, Integer type, Integer order);
/**
* 鑾峰彇鏈�澶ф帓搴忓��
+ *
* @param bannerId
* @return
*/
@@ -76,23 +80,60 @@
/**
* 鏍规嵁 鍞竴鏍囪瘑鏌ヨ
- * @param card 鍞竴鏍囪瘑
+ *
+ * @param card
+ * 鍞竴鏍囪瘑
* @return
*/
- public List<SwiperPicture> getByBannerCard(String card) throws SwiperPictureException;
+ public List<SwiperPicture> getByBannerCard(String card);
+
+ /**
+ * 鏍规嵁鏍囪瘑涓庣増鏈煡璇�
+ *
+ * @param card
+ * @param platform
+ * @param version
+ * @return
+ */
+ public List<SwiperPicture> getByBannerCardAndVersion(String card, String platform, int version);
/**
* 淇濆瓨淇℃伅
+ *
* @param record
* @throws SwiperPictureException
*/
- public void saveObject(MultipartFile file, SwiperPicture record, String jumpType) throws SwiperPictureException, Exception;
+ public void saveObject(MultipartFile file, SwiperPicture record, String jumpType)
+ throws SwiperPictureException, Exception;
/**
* 鏍规嵁绠$悊id 鏌ヨ鏈夋晥杞挱鍥�
+ *
* @param bannerId
* @return
* @throws SwiperPictureException
*/
public List<SwiperPicture> getByBannerId(Long bannerId) throws SwiperPictureException;
+
+
+ /**
+ * 鏍规嵁绠$悊id 鏌ヨ鏈夋晥杞挱鍥�(鏇村姞鐗堟湰鍖哄垎)
+ * @param bannerId
+ * @param platform
+ * @param version
+ * @return
+ * @throws SwiperPictureException
+ */
+ public List<SwiperPicture> getByBannerId(Long bannerId,String platform,int version) throws SwiperPictureException;
+
+
+ /**
+ * 涓篵anner璁剧疆鐗堟湰
+ *
+ * @param id
+ * @param versions
+ * @throws SwiperPictureException
+ */
+ public void setVersions(Long id, List<Long> versions) throws SwiperPictureException;
+
}
--
Gitblit v1.8.0