AchievementMapper.java 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package com.goafanti.common.dao;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.goafanti.achievement.bo.AchievementInterestBo;
  5. import com.goafanti.achievement.bo.AchievementOrgOwnerDetailBo;
  6. import com.goafanti.achievement.bo.AchievementRecommended;
  7. import com.goafanti.achievement.bo.AchievementUserOwnerDetailBo;
  8. import com.goafanti.app.bo.HomeAchievemend;
  9. import com.goafanti.common.bo.PolicyEntity;
  10. import com.goafanti.common.model.Achievement;
  11. import com.goafanti.portal.bo.AchievementDetailBo;
  12. import com.goafanti.portal.bo.AchievementObject;
  13. import com.goafanti.portal.bo.AchievementPortalDetailBo;
  14. import com.goafanti.portal.bo.AchievementResultObject;
  15. public interface AchievementMapper {
  16. int deleteByPrimaryKey(String id);
  17. int insert(Achievement record);
  18. int insertSelective(Achievement record);
  19. Achievement selectByPrimaryKey(String id);
  20. int updateByPrimaryKeySelective(Achievement record);
  21. int updateByPrimaryKey(Achievement record);
  22. int batchDeleteByPrimaryKey(List<String> id);
  23. AchievementUserOwnerDetailBo selectUserOwnerDetail(String id);
  24. AchievementOrgOwnerDetailBo selectOrgOwnerDetail(String id);
  25. void insertBatch(List<Achievement> achievementList);
  26. AchievementDetailBo selectAchievementDetail(String uid, String id);
  27. AchievementDetailBo selectAchievementDetail(String id);
  28. AchievementPortalDetailBo findUserPortalAchievementDetail(@Param("id")String id, @Param("uid")String uid);
  29. AchievementPortalDetailBo findOrgPortalAchievementDetail(@Param("id")String id, @Param("uid")String uid);
  30. Integer countInterest(String achievementId);
  31. List<AchievementInterestBo> achievementInterest(String uid);
  32. List<HomeAchievemend> getAppHomeAchievement();
  33. List<AchievementRecommended> getAppHomeRecommended();
  34. List<AchievementObject>getRecentAchievements(int size,String url,String showLocation);
  35. List<AchievementObject>getHotAchievements(int size,String url,String showLocation);
  36. List<AchievementObject>getPatentList(int size,String url,String showLocation);
  37. List<AchievementObject>getPracticalTechnologys(int size,String url,String showLocation);
  38. List<PolicyEntity>getIntellectualProperty(int size);
  39. AchievementObject getAchievementDetail(String id,Integer type);
  40. List<AchievementObject>getBoutiquePatent(int size);
  41. List<AchievementObject>guessYouLike(int size);
  42. AchievementResultObject getAchievementDetailById(String id);
  43. }