| | |
| | |
|
| | | 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) ;
|
| | |
|
| | | /**
|
| | | * 选择性更新内容——不为空则更新该字段
|
| | |
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public int updateByPrimaryKeySelective(HelpCenter record) throws HelpCenterException;
|
| | | public int updateByPrimaryKeySelective(HelpCenter record);
|
| | |
|
| | |
|
| | |
|
| | |
| | | * @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);
|
| | |
|
| | |
|
| | | /**
|
| | |
| | | * @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);
|
| | |
|
| | |
|
| | | /**
|
| | |
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public int deleteBatchById(List<String> idList) throws HelpCenterException;
|
| | | public int deleteBatchById(List<String> idList);
|
| | |
|
| | | /**
|
| | | *
|
| | |
| | | * @return
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public HelpInfo getHelpInfo(Long id) throws HelpCenterException;
|
| | | public HelpInfo getHelpInfo(Long id);
|
| | |
|
| | | /**
|
| | | * 查询 只返回id、title
|
| | |
| | | * @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);
|
| | |
|
| | |
|
| | | /**
|
| | |
| | | * @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);
|
| | |
|
| | | /**
|
| | | * 版本设置
|
| | |
| | | public void setVersions(Long id, List<Long> versions) throws HelpCenterException;
|
| | |
|
| | |
|
| | | /**
|
| | | * 状态切换
|
| | | * @param id
|
| | | * @throws HelpCenterException
|
| | | */
|
| | | public void switchState(Long id) throws HelpCenterException;
|
| | |
|
| | | |
| | | }
|