From 98b1a0affd69bbe63223c21fdd2c404e8bedfccb Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 20 五月 2020 17:25:08 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/div' into 2.1.2 --- fanli/src/main/java/com/yeshi/fanli/service/inter/help/HelpCenterService.java | 50 +++++++++++++++++++++++++++++--------------------- 1 files changed, 29 insertions(+), 21 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/help/HelpCenterService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/help/HelpCenterService.java index fca73a3..c0efa57 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/help/HelpCenterService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/help/HelpCenterService.java @@ -11,21 +11,14 @@ public interface HelpCenterService { - /** - * 鎻掑叆瀵硅薄 - * @param record - * @return - * @throws HelpCenterException - */ - public int insertSelective(HelpCenter record) throws HelpCenterException; - + /** * 鏇存柊褰撳墠瀵硅薄鎵�鏈夋暟鎹� * @param record * @return * @throws HelpCenterException */ - public int updateByPrimaryKey(HelpCenter record) throws HelpCenterException; + public int updateByPrimaryKey(HelpCenter record) ; /** * 閫夋嫨鎬ф洿鏂板唴瀹光�斺�斾笉涓虹┖鍒欐洿鏂拌瀛楁 @@ -33,7 +26,7 @@ * @return * @throws HelpCenterException */ - public int updateByPrimaryKeySelective(HelpCenter record) throws HelpCenterException; + public int updateByPrimaryKeySelective(HelpCenter record); @@ -43,10 +36,10 @@ * @return * @throws HelpCenterException */ - public HelpCenter selectByPrimaryKey(Long id) throws HelpCenterException; + public HelpCenter selectByPrimaryKey(Long id) ; @Cacheable(value = "helpCenterCache") - public HelpCenter selectByPrimaryKeyCache(Long id) throws HelpCenterException; + public HelpCenter selectByPrimaryKeyCache(Long id); /** @@ -58,10 +51,9 @@ * @param endTime 缁撴潫鏃堕棿 * @return */ - public List<HelpCenter> query(int pageIndex, int pageSize, String key, Long cid, - Integer orderMode) throws HelpCenterException; + public List<HelpCenter> query(int pageIndex, int pageSize, String key, Long cid, Integer orderMode,Integer state) ; - public long countQuery(String key, Long cid) throws HelpCenterException; + public long countQuery(String key, Long cid,Integer state); /** @@ -72,7 +64,7 @@ * @return * @throws Exception */ - public String save(HelpCenter helpCenter, String content, String html) throws Exception; + public String save(HelpCenter helpCenter, String content, String html) throws HelpCenterException, Exception; /** @@ -81,7 +73,7 @@ * @return * @throws HelpCenterException */ - public int deleteBatchById(List<String> idList) throws HelpCenterException; + public int deleteBatchById(List<String> idList); /** * @@ -89,7 +81,7 @@ * @return * @throws HelpCenterException */ - public HelpInfo getHelpInfo(Long id) throws HelpCenterException; + public HelpInfo getHelpInfo(Long id); /** * 鏌ヨ 鍙繑鍥瀒d銆乼itle @@ -99,7 +91,7 @@ * @return * @throws HelpCenterException */ - public List<HelpCenter> queryIdAndTitle(int pageIndex, int pageSize, String key, Long cid) throws HelpCenterException; + public List<HelpCenter> listValid(long pageId, int pageSize, String key, Long cid); /** @@ -107,10 +99,26 @@ * @param idList * @throws HelpCenterException */ - public void deleteInfoBatchById(List<String> idList) throws HelpCenterException; + public void deleteInfoBatchById(List<String> idList); - public HelpInfo getHelpInfoCache(Long id) throws HelpCenterException; + public HelpInfo getHelpInfoCache(Long id); + + /** + * 鐗堟湰璁剧疆 + * @param id + * @param versions + * @throws HelpCenterException + */ + public void setVersions(Long id, List<Long> versions) throws HelpCenterException; + + + /** + * 鐘舵�佸垏鎹� + * @param id + * @throws HelpCenterException + */ + public void switchState(Long id) throws HelpCenterException; } -- Gitblit v1.8.0