Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-cr20g
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
dsk-cr20g
Commits
94db2d78
Commit
94db2d78
authored
May 16, 2023
by
liuChang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
招标市场分析
parent
80e7bb0b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
MarketAnalysisController.java
...m/dsk/web/controller/search/MarketAnalysisController.java
+18
-0
MarketAnalysisService.java
.../web/controller/search/service/MarketAnalysisService.java
+5
-0
MarketAnalysisServiceImpl.java
...roller/search/service/impl/MarketAnalysisServiceImpl.java
+13
-0
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/search/MarketAnalysisController.java
View file @
94db2d78
package
com
.
dsk
.
web
.
controller
.
search
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.dtos.ComposeQueryDto
;
import
com.dsk.web.controller.search.service.MarketAnalysisService
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -58,4 +60,20 @@ public class MarketAnalysisController {
return
marketAnalysisService
.
certGroupByCategoryProvinceLevel
();
}
/*
* 中标数量按省份分组
*/
@RequestMapping
(
"/countGroupByProvince"
)
public
AjaxResult
countGroupByProvince
(
@RequestBody
ComposeQueryDto
compose
)
{
return
marketAnalysisService
.
countGroupByProvince
(
compose
);
}
/*
* 中标数量按月份分组
*/
@RequestMapping
(
"/countGroupByMonth"
)
public
AjaxResult
countGroupByMonth
(
@RequestBody
ComposeQueryDto
compose
)
{
return
marketAnalysisService
.
countGroupByMonth
(
compose
);
}
}
dsk-admin/src/main/java/com/dsk/web/controller/search/service/MarketAnalysisService.java
View file @
94db2d78
package
com
.
dsk
.
web
.
controller
.
search
.
service
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.dtos.ComposeQueryDto
;
/**
* @Author liujie
...
...
@@ -16,4 +17,8 @@ public interface MarketAnalysisService {
AjaxResult
certGroupByCategoryAndLevel
();
AjaxResult
certGroupByCategoryProvinceLevel
();
AjaxResult
countGroupByProvince
(
ComposeQueryDto
compose
);
AjaxResult
countGroupByMonth
(
ComposeQueryDto
compose
);
}
dsk-admin/src/main/java/com/dsk/web/controller/search/service/impl/MarketAnalysisServiceImpl.java
View file @
94db2d78
...
...
@@ -3,6 +3,7 @@ package com.dsk.web.controller.search.service.impl;
import
cn.hutool.core.bean.BeanUtil
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.core.domain.R
;
import
com.dsk.common.dtos.ComposeQueryDto
;
import
com.dsk.common.utils.DskOpenApiUtil
;
import
com.dsk.common.utils.http.HttpUtils
;
import
com.dsk.web.controller.search.service.MarketAnalysisService
;
...
...
@@ -43,4 +44,16 @@ public class MarketAnalysisServiceImpl implements MarketAnalysisService {
return
null
;
}
@Override
public
AjaxResult
countGroupByProvince
(
ComposeQueryDto
compose
)
{
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/marketAnalysis/countGroupByProvince"
,
BeanUtil
.
beanToMap
(
compose
,
false
,
false
));
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
@Override
public
AjaxResult
countGroupByMonth
(
ComposeQueryDto
compose
)
{
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/marketAnalysis/countGroupByDate"
,
BeanUtil
.
beanToMap
(
compose
,
false
,
false
));
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment