From dc5be7d38446f70e6ff86df311119c32b41fe7f8 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期六, 28 十一月 2020 16:37:05 +0800 Subject: [PATCH] 大淘客搜索接口升级 --- fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/HomeNavbarService.java | 80 +++++++++++++++++++++++++++++++++++++--- 1 files changed, 74 insertions(+), 6 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/HomeNavbarService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/HomeNavbarService.java index c7c61b8..8954287 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/HomeNavbarService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/homemodule/HomeNavbarService.java @@ -1,6 +1,13 @@ package com.yeshi.fanli.service.inter.homemodule; +import java.util.List; + +import com.yeshi.fanli.entity.SystemEnum; +import org.apache.ibatis.annotations.Param; +import org.springframework.web.multipart.MultipartFile; + import com.yeshi.fanli.entity.bus.homemodule.HomeNavbar; +import com.yeshi.fanli.exception.homemodule.HomeNavbarException; /** * APP瀵艰埅鏍� @@ -10,16 +17,77 @@ */ public interface HomeNavbarService { - public int deleteByPrimaryKey(Long id); + + /** + * 鏍规嵁涓婚敭鎵归噺鍒犻櫎 + * @param list + * @return + */ + public int deleteBatchByPrimaryKey(List<Long> list); + - public int insert(HomeNavbar record); + /** + * 淇濆瓨 + * @param file + * @param record + * @throws HomeNavbarException + * @throws Exception + */ + public void saveObject(MultipartFile file, HomeNavbar record) throws HomeNavbarException, Exception; - public int insertSelective(HomeNavbar record); + /** + * 鏇存柊鎺掑簭椤哄簭 + * @param id + * @param moveType + * @throws HomeNavbarException + * @throws Exception + */ + public void updateOrder(Long id, Integer moveType, Integer sex) throws HomeNavbarException, Exception; - public HomeNavbar selectByPrimaryKey(Long id); + + /** + * 鍚庣鏌ヨ + * @param start + * @param count + * @param key + * @return + */ + public List<HomeNavbar> listQuery(long start, int count, String key, Integer sex, SystemEnum system); + + public long countlistQuery(String key, Integer sex, SystemEnum system); + + + /** + * 鏌ヨ鏈夋晥瀵艰埅鏍� + * @return + */ + public List<HomeNavbar> listQueryEffectiveNavbar(SystemEnum system); + + /** + * 鏍规嵁鍒嗙被鏌ヨ鏈夋晥瀵艰埅鏍� + * @param classId + * @return + */ + public HomeNavbar getEffectiveByClassId(@Param("classId") Long classId, SystemEnum system); - public int updateByPrimaryKeySelective(HomeNavbar record); - public int updateByPrimaryKey(HomeNavbar record); + /** + * 榛樿瀵艰埅鏍� + * @return + */ + public List<HomeNavbar> listQueryDefaultNavbar(Integer sex, SystemEnum system); + /** + * 鍥哄畾鐨勫鑸爮 + * @return + */ + public List<HomeNavbar> listQueryFixedNavbar(SystemEnum system); + + /** + * 鏀瑰彉鐘舵�� + * @param id + * @throws HomeNavbarException + */ + public void switchState(Long id) throws HomeNavbarException; + } -- Gitblit v1.8.0