| | |
| | | package com.yeshi.fanli.service.inter.help;
|
| | |
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.springframework.cache.annotation.Cacheable;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.help.HelpCenter;
|
| | | import com.yeshi.fanli.entity.bus.help.HelpInfo;
|
| | | import com.yeshi.fanli.exception.config.HelpCenterException;
|
| | |
|
| | | public interface HelpCenterService {
|
| | | |
| | |
|
| | | /**
|
| | | * 更新当前对象所有数据
|
| | | * @param record
|
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public int updateByPrimaryKey(HelpCenter record) ;
|
| | | |
| | | /**
|
| | | * 选择性更新内容——不为空则更新该字段
|
| | | * @param record
|
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public int updateByPrimaryKeySelective(HelpCenter record);
|
| | | |
| | |
|
| | | |
| | | /**
|
| | | * 根据id查找当前对象
|
| | | * @param id
|
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public HelpCenter selectByPrimaryKey(Long id) ;
|
| | | |
| | | @Cacheable(value = "helpCenterCache")
|
| | | public HelpCenter selectByPrimaryKeyCache(Long id);
|
| | | |
| | | |
| | | /**
|
| | | * 查询
|
| | | * @param pageIndex 页码
|
| | | * @param pageSize 页面条数
|
| | | * @param key 搜索条件
|
| | | * @param startTime 起始时间
|
| | | * @param endTime 结束时间
|
| | | * @return
|
| | | */
|
| | | public List<HelpCenter> query(int pageIndex, int pageSize, String key, Long cid, Integer orderMode,Integer state) ;
|
| | | |
| | | public long countQuery(String key, Long cid,Integer state);
|
| | |
|
| | | |
| | | /**
|
| | | * 保存信息
|
| | | * @param helpCenter
|
| | | * @param content
|
| | | * @param html
|
| | | * @return |
| | | * @throws Exception
|
| | | */
|
| | | public String save(HelpCenter helpCenter, String content, String html) throws HelpCenterException, Exception;
|
| | |
|
| | | |
| | | /**
|
| | | * 批量删除
|
| | | * @param idList
|
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public int deleteBatchById(List<String> idList);
|
| | |
|
| | | /**
|
| | | * |
| | | * @param id
|
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public HelpInfo getHelpInfo(Long id);
|
| | |
|
| | | /**
|
| | | * 查询 只返回id、title
|
| | | * @param pageIndex
|
| | | * @param pageSize
|
| | | * @param key
|
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public List<HelpCenter> listValid(long pageId, int pageSize, String key, Long cid);
|
| | |
|
| | | |
| | | /**
|
| | | * 删除帮助详情信息
|
| | | * @param idList
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public void deleteInfoBatchById(List<String> idList);
|
| | | |
| | | |
| | | public HelpInfo getHelpInfoCache(Long id);
|
| | |
|
| | | /**
|
| | | * 版本设置
|
| | | * @param id
|
| | | * @param versions
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public void setVersions(Long id, List<Long> versions) throws HelpCenterException;
|
| | |
|
| | | |
| | | }
|
| | | package com.yeshi.fanli.service.inter.help; |
| | | |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.SystemEnum; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | |
| | | import com.yeshi.fanli.entity.bus.help.HelpCenter; |
| | | import com.yeshi.fanli.entity.bus.help.HelpInfo; |
| | | import com.yeshi.fanli.exception.config.HelpCenterException; |
| | | |
| | | public interface HelpCenterService { |
| | | |
| | | |
| | | /** |
| | | * 更新当前对象所有数据 |
| | | * @param record |
| | | * @return |
| | | * @throws HelpCenterException |
| | | */ |
| | | public int updateByPrimaryKey(HelpCenter record) ; |
| | | |
| | | /** |
| | | * 选择性更新内容——不为空则更新该字段 |
| | | * @param record |
| | | * @return |
| | | * @throws HelpCenterException |
| | | */ |
| | | public int updateByPrimaryKeySelective(HelpCenter record); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据id查找当前对象 |
| | | * @param id |
| | | * @return |
| | | * @throws HelpCenterException |
| | | */ |
| | | public HelpCenter selectByPrimaryKey(Long id) ; |
| | | |
| | | @Cacheable(value = "helpCenterCache") |
| | | public HelpCenter selectByPrimaryKeyCache(Long id); |
| | | |
| | | |
| | | /** |
| | | * 查询 |
| | | * @param pageIndex 页码 |
| | | * @param pageSize 页面条数 |
| | | * @param key 搜索条件 |
| | | * @return |
| | | */ |
| | | public List<HelpCenter> query(int pageIndex, int pageSize, String key, Long cid, Integer orderMode, Integer state, SystemEnum system) ; |
| | | |
| | | public long countQuery(String key, Long cid,Integer state, SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 保存信息 |
| | | * @param helpCenter |
| | | * @param content |
| | | * @param html |
| | | * @return |
| | | * @throws Exception |
| | | */ |
| | | public String save(HelpCenter helpCenter, String content, String html) throws HelpCenterException, Exception; |
| | | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * @param idList |
| | | * @return |
| | | * @throws HelpCenterException |
| | | */ |
| | | public int deleteBatchById(List<String> idList); |
| | | |
| | | /** |
| | | * |
| | | * @param id |
| | | * @return |
| | | * @throws HelpCenterException |
| | | */ |
| | | public HelpInfo getHelpInfo(Long id); |
| | | |
| | | /** |
| | | * 查询 只返回id、title |
| | | * @param pageSize |
| | | * @param key |
| | | * @return |
| | | * @throws HelpCenterException |
| | | */ |
| | | public List<HelpCenter> listValid(long pageId, int pageSize, String key, Long cid, SystemEnum system); |
| | | |
| | | |
| | | /** |
| | | * 删除帮助详情信息 |
| | | * @param idList |
| | | * @throws HelpCenterException |
| | | */ |
| | | public void deleteInfoBatchById(List<String> idList); |
| | | |
| | | |
| | | 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; |
| | | |
| | | |
| | | } |