From cc88ea25dc395b5d1b9b5ac9ddba7713c667c1c1 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期二, 17 十二月 2019 12:45:38 +0800 Subject: [PATCH] 专题与banner设置版本管理 --- fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/SwiperPictureService.java | 68 +++++++++++++++++++++++++++------- 1 files changed, 54 insertions(+), 14 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 12bc48d..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,7 +9,6 @@ public interface SwiperPictureService { - public int insertSelective(SwiperPicture record); public SwiperPicture selectByPrimaryKey(Long id); @@ -19,9 +16,10 @@ public int updateByPrimaryKeySelective(SwiperPicture record); public int updateByPrimaryKey(SwiperPicture record); - + /** * 鏌ヨ + * * @param start * @param count * @param bannerId @@ -29,36 +27,41 @@ * @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 @@ -69,6 +72,7 @@ /** * 鑾峰彇鏈�澶ф帓搴忓�� + * * @param bannerId * @return */ @@ -76,24 +80,60 @@ /** * 鏍规嵁 鍞竴鏍囪瘑鏌ヨ - * @param card 鍞竴鏍囪瘑 + * + * @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; + 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