| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- package com.goafanti.app.controller;
- import javax.annotation.Resource;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RestController;
- import com.goafanti.achievement.service.AchievementInterestService;
- import com.goafanti.achievement.service.AchievementService;
- import com.goafanti.common.bo.Result;
- import com.goafanti.common.controller.BaseApiController;
- import com.goafanti.common.utils.StringUtils;
- import com.goafanti.demand.service.DemandService;
- import com.goafanti.news.service.NewsService;
- import com.goafanti.news.service.PolicyService;
- import com.goafanti.user.service.UserIdentityService;
- @RestController
- @RequestMapping(path = "/open/app/discovery", method = RequestMethod.GET)
- public class OpenAppDiscoveryController extends BaseApiController {
- @Resource
- private AchievementService achievementService;
- @Resource
- private DemandService demandService;
- @Resource
- private UserIdentityService userIdentityService;
- @Resource
- private AchievementInterestService achievementInterestService;
- @Resource
- private NewsService newsService;
- @Resource
- private PolicyService policyService;
-
- /**
- * 成果列表
- */
- @RequestMapping(value = "/achievementList", method = RequestMethod.GET)
- private Result achievementList(Integer auditStatus, Integer serialNumber, String name, String keyword,Integer dataCategory,Integer category,
- Integer ownerType,Integer fieldA, Integer status, String releaseDateStartDate, String releaseDateEndDate,
- Integer releaseStatus,String ownerId,String pageNo, String pageSize) {
- Result res = new Result();
- Integer pNo = 1;
- Integer pSize = 10;
- if (StringUtils.isNumeric(pageSize)) {
- pSize = Integer.parseInt(pageSize);
- }
- if (StringUtils.isNumeric(pageNo)) {
- pNo = Integer.parseInt(pageNo);
- }
- res.setData(achievementService.listAppUserAchievement(auditStatus, serialNumber, name, keyword, dataCategory,category,
- ownerType, status, releaseDateStartDate, releaseDateEndDate, releaseStatus,ownerId, fieldA, pNo, pSize));
- return res;
- }
-
-
-
- /**
- * 需求列表
- */
- @RequestMapping(value = "/demandList", method = RequestMethod.GET)
- public Result demandList(Integer auditStatus, Integer serialNumber, String name, String keyword, Integer demandType,Integer industryCategoryA,
- String validityPeriodStartDate, String validityPeriodEndDate, Integer status, Integer releaseStatus,
- String releaseDateStartDate, String releaseDateEndDate, String employerId,String pageNo, String pageSize) {
- Result res = new Result();
- Integer pNo = 1;
- Integer pSize = 10;
- if (StringUtils.isNumeric(pageSize)) {
- pSize = Integer.parseInt(pageSize);
- }
- if (StringUtils.isNumeric(pageNo)) {
- pNo = Integer.parseInt(pageNo);
- }
- res.setData(demandService.listAppDemand(auditStatus, serialNumber, name, keyword, demandType, industryCategoryA,
- validityPeriodStartDate, validityPeriodEndDate, status, releaseStatus, releaseDateStartDate,
- releaseDateEndDate, employerId, pNo, pSize));
- return res;
- }
-
- /**
- * 行业分类列表
- *
- */
- @RequestMapping(value = "/industryList", method = RequestMethod.GET)
- public Result industryList() {
- Result res = new Result();
- res.setData(userIdentityService.industryList());
- return res;
- }
-
- /**
- * 专家领域分类列表
- *
- */
- @RequestMapping(value = "/domainList", method = RequestMethod.GET)
- public Result domainList() {
- Result res = new Result();
- res.setData(userIdentityService.domainList());
- return res;
- }
- /**
- * 专家列表
- */
- @RequestMapping(value = "/expertsList", method = RequestMethod.GET)
- public Result expertsList(String name,String industry, Integer sortType,Integer pageNo, Integer pageSize) {
- Result res = new Result();
- res.setData(userIdentityService.appExpertsList(name,industry,sortType,pageNo,pageSize));
- return res;
- }
- /**
- * 顾问列表
- */
- @RequestMapping(value = "/consultantList", method = RequestMethod.GET)
- public Result consultantList(String name,Integer sortType, Integer consultantType, Integer province,Integer city,
- Integer area, Integer pageNo, Integer pageSize) {
- Result res = new Result();
- res.setData(userIdentityService.consultantList( name, sortType, consultantType, province, city,
- area, pageNo, pageSize));
- return res;
- }
-
- /**
- * 发现页面广告
- */
- @RequestMapping(value = "/advertising", method = RequestMethod.GET)
- public Result advertising() {
- Result res = new Result();
- res.setData(userIdentityService.advertising());
- return res;
- }
- /**
- * 政策列表
- */
- @RequestMapping(value = "/listPolicy", method = RequestMethod.GET)
- public Result ListPolicy(Integer pageNo,Integer pageSize) {
- Result res = new Result();
- res.setData(policyService.appListPolicy(pageNo, pageSize));
- return res;
-
- }
-
- /**
- * 政策详情
- */
- @RequestMapping(value = "/policyDetail", method = RequestMethod.GET)
- public Result policyDetail(String id) {
- Result res = new Result();
- res.setData(policyService.policyDetail(id));
- return res;
- }
- /**
- * 新闻详情
- */
- @RequestMapping(value = "/newsDetail", method = RequestMethod.GET)
- public Result newsDetail(long id) {
- Result res = new Result();
- res.setData(newsService.findAppNewsDetail(id));
- return res;
- }
-
- /**
- * 科技资讯列表
- */
- @RequestMapping(value = "/listInformation", method = RequestMethod.GET)
- public Result listInformation(Integer pageNo,Integer pageSize) {
- Result res = new Result();
- res.setData(newsService.appListinformation( pageNo, pageSize));
- return res;
- }
- /**
- * 科技资讯详情
- */
- @RequestMapping(value = "/informationDetail", method = RequestMethod.GET)
- public Result informationDetail(String id) {
- Result res = new Result();
- res.setData(newsService.informationDetail(id));
- return res;
- }
- /**
- * 资产百科列表
- */
- @RequestMapping(value = "/listEncyclopedia", method = RequestMethod.GET)
- public Result listEncyclopedia(Integer pageNo,Integer pageSize) {
- Result res = new Result();
- res.setData(newsService.listEncyclopedia( pageNo, pageSize));
- return res;
- }
-
-
- }
|