ContentService.java 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. package com.sooka.module.web.cms.service;
  2. import com.github.pagehelper.PageInfo;
  3. import com.sooka.common.base.BaseService;
  4. import com.sooka.module.web.cms.vo.CxcVo;
  5. import com.sooka.module.web.cms.vo.TCmsContentVo;
  6. import com.sooka.mybatis.model.TCmsContent;
  7. import com.sooka.mybatis.model.TCmsModelFiled;
  8. import java.sql.SQLException;
  9. import java.util.List;
  10. import java.util.Map;
  11. /**
  12. * Description:内容
  13. *
  14. *
  15. * @create 2017-04-18
  16. **/
  17. public interface ContentService extends BaseService<TCmsContent,Long> {
  18. PageInfo<TCmsContent> page(Integer pageNumber, Integer pageSize, TCmsContentVo pojo);
  19. /*岔信村列表*/
  20. PageInfo<CxcVo> pages(Integer pageNumber, Integer pageSize, TCmsContentVo pojo);
  21. Map findContentByContentIdAndTableName(Long contentId, String tableName);
  22. /*回收站*/
  23. String recovery(Long[] ids);
  24. String save(TCmsContent content, String tableName, Map<String, Object> formParam, String[] tag) throws SQLException;
  25. String update(TCmsContent content, String tableName, List<TCmsModelFiled> cmsModelFileds, Map<String, Object> formParam, String[] tag) throws SQLException;
  26. PageInfo<Map> findContentListBySiteIdAndCategoryId(Integer siteId,
  27. Long categoryId,
  28. Integer orderBy,
  29. Integer pageNumber,
  30. Integer pageSize,
  31. Integer hasChild,
  32. Integer isHot,
  33. Integer isPic,
  34. Integer isRecommend);
  35. PageInfo<Map> findTopicContentListBySiteIdAndCategoryIds(Integer siteId,
  36. Long[] categoryIds,
  37. Integer orderBy,
  38. Integer size,
  39. Integer isHot,
  40. Integer isPic,
  41. Integer isRecommend);
  42. PageInfo<Map> page(Integer pageNumber, Integer siteId, Long categoryId);
  43. PageInfo<TCmsContent> findContentListByModelFiledValue(int pageNumber, Long categoryId, String tableName, Map<String, Object> param);
  44. void viewUpdate(Long contentId);
  45. String findAllMonthCount();
  46. Integer AllCount();
  47. List<TCmsContent> findByCategoryId(Long categoryId);
  48. PageInfo<TCmsContent> QueryTitleDescription(int pageNumber,Map<String,Object> map);
  49. PageInfo<TCmsContent> SearchTitleFor(int pageNumber,Map<String,Object> map);
  50. PageInfo<TCmsContent> certificateQuery(Integer pageNumber, Map<String, Object> map);
  51. PageInfo<TCmsContent> studyBmList(Integer pageNumber, Map<String, Object> map);
  52. List<TCmsContent> certificateQueryList(Map<String, Object> map);
  53. int contentBmApp(Map<String, Object> map);
  54. }