DemandMapper.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package com.goafanti.common.dao;
  2. import java.util.List;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.goafanti.common.model.Demand;
  5. import com.goafanti.demand.bo.AppDemandBo;
  6. import com.goafanti.demand.bo.DemandDetailBo;
  7. import com.goafanti.demand.bo.DemandListBo;
  8. import com.goafanti.demand.bo.DemandRecommended;
  9. import com.goafanti.portal.bo.DemandPortalDetailBo;
  10. import com.goafanti.portal.bo.DemandSearchDetailBo;
  11. public interface DemandMapper {
  12. int deleteByPrimaryKey(String id);
  13. int insert(Demand record);
  14. int insertSelective(Demand record);
  15. Demand selectByPrimaryKey(String id);
  16. int updateByPrimaryKeySelective(Demand record);
  17. int updateByPrimaryKey(Demand record);
  18. DemandDetailBo selectUserDemandDetail(String id);
  19. int batchDeleteByPrimaryKey(List<String> id);
  20. DemandDetailBo selectOrgDemandDetail(String id);
  21. void insertBatch(List<Demand> demandList);
  22. DemandSearchDetailBo selectDemandDetail(String uid, String id);
  23. DemandPortalDetailBo findOrgPortalDemandDetail(@Param("id")String id, @Param("uid")String uid);
  24. DemandPortalDetailBo findUserPortalDemandDetail(@Param("id")String id, @Param("uid")String uid);
  25. int countInterest(String demandId);
  26. DemandDetailBo selectDemandDetail(String id);
  27. AppDemandBo selectAppByPrimaryKey(@Param("id")String id, @Param("uid")String uid);
  28. List<DemandRecommended> getAppHomeRecommended();
  29. Demand selectDemandFollow(String id);
  30. List<DemandListBo> selectRecentDemand(int size,String pattern,String location);
  31. List<DemandListBo> selectCompanyDemand(int size,String pattern,String location);
  32. List<DemandListBo> getUrgentDemand(int size,String pattern,String location);
  33. List<DemandListBo> getHotDemand(int size,String pattern,String location, int deletedSign);
  34. List<DemandListBo> getAreaDemand(int size,String pattern,String location);
  35. List<DemandListBo> getProLearnStudyDemand(int size,String pattern,String location);
  36. List<DemandListBo> getFundCrowdDemand(int size,String pattern,String location);
  37. List<DemandListBo> getPersonnelDemand(int size,String pattern,String location);
  38. DemandListBo getDemandDetail(String id,Integer type);
  39. List<DemandListBo>getBoutiqueDemandList(int i,String pattern,String location);
  40. }