Commit acf38fc8 authored by liuChang's avatar liuChang

Merge branch 'master' of 192.168.60.201:root/dsk-operate-sys

# Conflicts:
#	dsk-admin/src/main/java/com/dsk/web/controller/search/service/BusinessOpportunityRadarService.java
翻页
parent 66ab5294
...@@ -3,6 +3,7 @@ package com.dsk.web.controller.search.controller; ...@@ -3,6 +3,7 @@ package com.dsk.web.controller.search.controller;
import com.alibaba.fastjson2.JSONObject; import com.alibaba.fastjson2.JSONObject;
import com.dsk.common.core.domain.AjaxResult; import com.dsk.common.core.domain.AjaxResult;
import com.dsk.common.dtos.ComposeQueryDto; import com.dsk.common.dtos.ComposeQueryDto;
import com.dsk.common.dtos.Page;
import com.dsk.web.controller.search.service.BusinessOpportunityRadarService; import com.dsk.web.controller.search.service.BusinessOpportunityRadarService;
import com.dsk.web.controller.search.service.MarketAnalysisService; import com.dsk.web.controller.search.service.MarketAnalysisService;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
...@@ -30,6 +31,9 @@ public class BusinessOpportunityRadarController { ...@@ -30,6 +31,9 @@ public class BusinessOpportunityRadarController {
*/ */
@RequestMapping("/jskBidPage") @RequestMapping("/jskBidPage")
public AjaxResult jskBidPage(@RequestBody ComposeQueryDto compose) { public AjaxResult jskBidPage(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.jskBidPage(compose); return opportunityRadarService.jskBidPage(compose);
} }
...@@ -38,6 +42,9 @@ public class BusinessOpportunityRadarController { ...@@ -38,6 +42,9 @@ public class BusinessOpportunityRadarController {
*/ */
@RequestMapping("/landMarketPage") @RequestMapping("/landMarketPage")
public AjaxResult landMarketPage(@RequestBody ComposeQueryDto compose) { public AjaxResult landMarketPage(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.landMarketPage(compose); return opportunityRadarService.landMarketPage(compose);
} }
...@@ -46,6 +53,9 @@ public class BusinessOpportunityRadarController { ...@@ -46,6 +53,9 @@ public class BusinessOpportunityRadarController {
*/ */
@RequestMapping("/establishmentPage") @RequestMapping("/establishmentPage")
public AjaxResult establishmentPage(@RequestBody ComposeQueryDto compose) { public AjaxResult establishmentPage(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.establishmentPage(compose); return opportunityRadarService.establishmentPage(compose);
} }
...@@ -54,6 +64,9 @@ public class BusinessOpportunityRadarController { ...@@ -54,6 +64,9 @@ public class BusinessOpportunityRadarController {
*/ */
@RequestMapping("/jskBidTenderPage") @RequestMapping("/jskBidTenderPage")
public AjaxResult jskBidTenderPage(@RequestBody ComposeQueryDto compose) { public AjaxResult jskBidTenderPage(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.jskBidTenderPage(compose); return opportunityRadarService.jskBidTenderPage(compose);
} }
...@@ -63,6 +76,9 @@ public class BusinessOpportunityRadarController { ...@@ -63,6 +76,9 @@ public class BusinessOpportunityRadarController {
*/ */
@RequestMapping("/jskBidNewsPage") @RequestMapping("/jskBidNewsPage")
public AjaxResult jskBidNewsPage(@RequestBody ComposeQueryDto compose) { public AjaxResult jskBidNewsPage(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.jskBidNewsPage(compose); return opportunityRadarService.jskBidNewsPage(compose);
} }
...@@ -72,6 +88,9 @@ public class BusinessOpportunityRadarController { ...@@ -72,6 +88,9 @@ public class BusinessOpportunityRadarController {
*/ */
@RequestMapping("/bondProjectPage") @RequestMapping("/bondProjectPage")
public AjaxResult bondProjectPage(@RequestBody ComposeQueryDto compose) { public AjaxResult bondProjectPage(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.bondProjectPage(compose); return opportunityRadarService.bondProjectPage(compose);
} }
...@@ -80,6 +99,9 @@ public class BusinessOpportunityRadarController { ...@@ -80,6 +99,9 @@ public class BusinessOpportunityRadarController {
*/ */
@RequestMapping("/jskBidPlanPage") @RequestMapping("/jskBidPlanPage")
public AjaxResult jskBidPlanPage(@RequestBody ComposeQueryDto compose) { public AjaxResult jskBidPlanPage(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.jskBidPlanPage(compose); return opportunityRadarService.jskBidPlanPage(compose);
} }
...@@ -104,6 +126,9 @@ public class BusinessOpportunityRadarController { ...@@ -104,6 +126,9 @@ public class BusinessOpportunityRadarController {
*/ */
@RequestMapping("/bidSourceList") @RequestMapping("/bidSourceList")
public AjaxResult bidSourceList(@RequestBody ComposeQueryDto compose) { public AjaxResult bidSourceList(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.bidSourceList(compose); return opportunityRadarService.bidSourceList(compose);
} }
} }
...@@ -26,6 +26,9 @@ public class CompanySearchController { ...@@ -26,6 +26,9 @@ public class CompanySearchController {
*/ */
@RequestMapping("/index") @RequestMapping("/index")
public AjaxResult landMarketPage(@RequestBody ComposeQueryDto compose) { public AjaxResult landMarketPage(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
return opportunityRadarService.enterpriseIndex(compose); return opportunityRadarService.enterpriseIndex(compose);
} }
...@@ -42,6 +45,9 @@ public class CompanySearchController { ...@@ -42,6 +45,9 @@ public class CompanySearchController {
*/ */
@PostMapping("/page") @PostMapping("/page")
public AjaxResult page(@RequestBody ComposeQueryDto compose) { public AjaxResult page(@RequestBody ComposeQueryDto compose) {
if (PageQueryLimit.pageLimit(compose.getPage())){
return AjaxResult.error("翻页已达到上限");
}
compose.getPage().setPage(compose.getPageNum()); compose.getPage().setPage(compose.getPageNum());
compose.getPage().setLimit(compose.getPageSize()); compose.getPage().setLimit(compose.getPageSize());
return opportunityRadarService.enterprisePage(compose); return opportunityRadarService.enterprisePage(compose);
......
package com.dsk.web.controller.search.controller;
import com.dsk.common.dtos.Page;
/**
* @author lc
* @date 2023/6/20 17:48
*/
public class PageQueryLimit {
public static boolean pageLimit(Page page){
if (null == page) {
return true;
}
if (null==page.getLimit()||null==page.getPage()){
return true;
}
if ( page.getPage()*page.getLimit()>10000){
return true;
}
return false;
}
}
...@@ -45,9 +45,13 @@ public class JskBidPlanDto { ...@@ -45,9 +45,13 @@ public class JskBidPlanDto {
Double startPlanTenderAmount; Double startPlanTenderAmount;
Double endPlanTenderAmount; Double endPlanTenderAmount;
//资金来源 //资金来源
String projecetCapitalSource; String projectCapitalSource;
//发布时间 //发布时间
String issueTime; String issueTime;
//计划发布开始时间
String planTenderDateStart;
//计划发布截止时间
String planTenderDateEnd;
//来源网站 //来源网站
String sourceName; String sourceName;
......
...@@ -16,6 +16,8 @@ public class SpecialBondProjectDto { ...@@ -16,6 +16,8 @@ public class SpecialBondProjectDto {
String uuid; String uuid;
String projectName; String projectName;
//match精确 like模糊
String nameType;
String projectType; String projectType;
//项目总投资 //项目总投资
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment