From e61ed7fbbc44d1ff5b92b2e76ec168f23ffe07df Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期四, 06 二月 2020 23:44:26 +0800
Subject: [PATCH] 小程序相关bug修改
---
fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/SwiperPictureService.java | 106 +++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 79 insertions(+), 27 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 dbfff07..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,10 +1,7 @@
package com.yeshi.fanli.service.inter.homemodule;
-
-
import java.util.List;
-import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;
import com.yeshi.fanli.entity.bus.homemodule.SwiperPicture;
@@ -12,20 +9,17 @@
public interface SwiperPictureService {
- public int deleteByPrimaryKey(Long id) throws SwiperPictureException;
+ public int insertSelective(SwiperPicture record);
- public int insert(SwiperPicture record) throws SwiperPictureException;
+ public SwiperPicture selectByPrimaryKey(Long id);
- public int insertSelective(SwiperPicture record) throws SwiperPictureException;
+ public int updateByPrimaryKeySelective(SwiperPicture record);
- public SwiperPicture selectByPrimaryKey(Long id) throws SwiperPictureException;
+ public int updateByPrimaryKey(SwiperPicture record);
- public int updateByPrimaryKeySelective(SwiperPicture record) throws SwiperPictureException;
-
- public int updateByPrimaryKey(SwiperPicture record) throws SwiperPictureException;
-
/**
* 鏌ヨ
+ *
* @param start
* @param count
* @param bannerId
@@ -33,55 +27,113 @@
* @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;
-
- /**
- * 涓婁紶鍥剧墖
- * @param file
- * @param record
- * @throws Exception
- */
- public void uploadPicture(MultipartFile file, SwiperPicture record) throws Exception;
/**
* 鏍规嵁绠$悊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
*/
public int getMaxOrderByBannerID(Long bannerId) throws SwiperPictureException;
+
+ /**
+ * 鏍规嵁 鍞竴鏍囪瘑鏌ヨ
+ *
+ * @param card
+ * 鍞竴鏍囪瘑
+ * @return
+ */
+ 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;
+
+ /**
+ * 鏍规嵁绠$悊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