| | |
| | | package com.yeshi.fanli.service.inter.homemodule;
|
| | |
|
| | |
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | |
| | |
|
| | | 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
|
| | |
| | | * @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
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 根据 唯一标识查询
|
| | | * @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;
|
| | | |
| | |
|
| | | /**
|
| | | * 为banner设置版本
|
| | | * |
| | | * @param id
|
| | | * @param versions
|
| | | * @throws SwiperPictureException
|
| | | */
|
| | | public void setVersions(Long id, List<Long> versions) throws SwiperPictureException;
|
| | |
|
| | | }
|