JtBusinessService.java 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. package com.goafanti.business.service;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.goafanti.business.bo.JtBusinessCategoryBo;
  5. import com.goafanti.business.bo.JtBusinessCategoryTree;
  6. import com.goafanti.business.bo.JtBusinessProjectResult;
  7. import com.goafanti.business.bo.makeMoneyCategoryListBo;
  8. import com.goafanti.common.bo.MyCollection;
  9. import com.goafanti.common.model.JtBusinessCategory;
  10. import com.goafanti.common.model.JtBusinessProject;
  11. import com.goafanti.core.mybatis.page.Pagination;
  12. public interface JtBusinessService {
  13. JtBusinessCategory getBusinessCategoryByLayerAndName(Integer layer,String name);
  14. List<JtBusinessCategory> getBusinessCategoryBySuperId(String id,Integer size);
  15. List<JtBusinessProject>getBusinessProjectByCategoryId(String id,Integer size,Integer isHot);
  16. JtBusinessProjectResult getBusinessProjectDetail(String id);
  17. JtBusinessCategoryTree getCategoryTree(String id);
  18. List<JtBusinessCategoryBo>getCategoryBoList(Integer module);
  19. Pagination<JtBusinessProjectResult>getProjects(String tag,String topId,String secondId,String name, Integer pageSize,Integer pageNo,Integer privateProject,Integer auditStatus,Integer module,Integer isHot,Integer orderType,Integer orderSort,String ownerId);
  20. int insertCategory(JtBusinessCategory jtBusinessCategory);
  21. int deleteCategoryById(String id);
  22. JtBusinessCategory getCategoryById(String id);
  23. int updateCategory(JtBusinessCategory jtBusinessCategory);
  24. int insertProject(JtBusinessProject jtBusinessProject);
  25. int deleteProjectById(String id);
  26. int updateProject(JtBusinessProject jtBusinessProject);
  27. List<JtBusinessProject>getProjectsLimit(Integer size);
  28. int deleteByIdAndUid(String id);
  29. Pagination<JtBusinessProject>listProjectIInterestedIn(Integer pageNo,Integer pageSize);
  30. Pagination<MyCollection> myCollectionProject(Integer pageNo, Integer pageSize);
  31. List<makeMoneyCategoryListBo> makeMoneyCategoryList();
  32. Pagination<MyCollection> recommendedApplication( Integer type,Integer pageNo, Integer pageSize);
  33. /**
  34. * 获得某模块的所有业务数据
  35. * @param module
  36. * @return
  37. */
  38. List<JtBusinessCategory> getCategoryByModule(Integer module,Integer layer);
  39. /**
  40. * 查看模块项目
  41. * @param module
  42. * @param isHost
  43. * @param size
  44. * @return
  45. */
  46. List<JtBusinessProject> getKJListByIds(Integer module, Integer isHost, Integer size);
  47. /**
  48. * 根据名字查看二级分类
  49. * @param name
  50. * @param isHost
  51. * @param size
  52. * @return
  53. */
  54. List<JtBusinessProject> getModuleByName(String name, Integer isHost, Integer size);
  55. /**
  56. * 品类上移
  57. * @param id
  58. * @return
  59. */
  60. int updateProjectMoveUp(String id);
  61. /**
  62. * 品类置顶
  63. * @param id
  64. * @return
  65. */
  66. int updateProjectSetTop(String id);
  67. void addJtCollectSearch(JtBusinessProject jtBusinessProject);
  68. void updateJtCollectSearch(String id);
  69. List<JtBusinessCategoryBo> getHomeIndex(Integer module, Integer isHome);
  70. /**
  71. * 根据标签名称获得项目
  72. * @param name
  73. * @param size
  74. * @return
  75. */
  76. List<JtBusinessProject> getProjectByTag(String name, Integer size);
  77. }