|
|
@@ -27,9 +27,9 @@ public class PortalSearchApiController extends BaseApiController {
|
|
|
* 科技成果搜索
|
|
|
*/
|
|
|
@RequestMapping(value = "/achievementList", method = RequestMethod.GET)
|
|
|
- public Result achievementSearchList(Integer bargainingMode, Integer category, Integer maturity, BigDecimal transferPriceLower,
|
|
|
- BigDecimal transferPriceUpper, Integer transferMode, String keyword, Integer fieldA, Integer fieldB,
|
|
|
- String pageNo, String pageSize) {
|
|
|
+ public Result achievementSearchList(Integer bargainingMode, Integer category, Integer maturity,
|
|
|
+ BigDecimal transferPriceLower, BigDecimal transferPriceUpper, Integer transferMode, String keyword,
|
|
|
+ Integer fieldA, Integer fieldB, String pageNo, String pageSize) {
|
|
|
Result res = new Result();
|
|
|
Integer pNo = 1;
|
|
|
Integer pSize = 10;
|
|
|
@@ -49,7 +49,8 @@ public class PortalSearchApiController extends BaseApiController {
|
|
|
*/
|
|
|
@RequestMapping(value = "/demandList", method = RequestMethod.GET)
|
|
|
public Result demandSerarchList(String keyword, Integer industryCategoryA, Integer industryCategoryB,
|
|
|
- Integer demandType, BigDecimal budgetCostLower, BigDecimal budgetCostUpper,String pageNo, String pageSize) {
|
|
|
+ Integer demandType, BigDecimal budgetCostLower, BigDecimal budgetCostUpper, String pageNo,
|
|
|
+ String pageSize) {
|
|
|
Result res = new Result();
|
|
|
Integer pNo = 1;
|
|
|
Integer pSize = 10;
|
|
|
@@ -63,14 +64,14 @@ public class PortalSearchApiController extends BaseApiController {
|
|
|
budgetCostLower, budgetCostUpper, pNo, pSize));
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 科技成果详情
|
|
|
*/
|
|
|
@RequestMapping(value = "/achievementDetail", method = RequestMethod.GET)
|
|
|
- public Result achievementDetail(String id){
|
|
|
+ public Result achievementDetail(String id) {
|
|
|
Result res = new Result();
|
|
|
- if (StringUtils.isBlank(id)){
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到成果ID", "成果ID"));
|
|
|
return res;
|
|
|
}
|
|
|
@@ -78,4 +79,18 @@ public class PortalSearchApiController extends BaseApiController {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 科技需求详情
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "/demandDetail", method = RequestMethod.GET)
|
|
|
+ public Result demandDetail(String id) {
|
|
|
+ Result res = new Result();
|
|
|
+ if (StringUtils.isBlank(id)) {
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_EMPTY_ERROR, "找不到需求ID", "需求ID"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ res.setData(demandService.selectDemandSearchDetail(id));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
}
|