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
550e9e23
Commit
550e9e23
authored
May 16, 2023
by
MyName
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.60.201/root/dsk-operate-sys
parents
99af95ce
0dd2ff6d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
22 deletions
+43
-22
MarketAnalysisController.java
...m/dsk/web/controller/search/MarketAnalysisController.java
+21
-13
MarketAnalysisService.java
.../web/controller/search/service/MarketAnalysisService.java
+6
-3
MarketAnalysisServiceImpl.java
...roller/search/service/impl/MarketAnalysisServiceImpl.java
+16
-6
No files found.
dsk-admin/src/main/java/com/dsk/web/controller/search/MarketAnalysisController.java
View file @
550e9e23
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
;
...
...
@@ -31,31 +33,37 @@ public class MarketAnalysisController {
}
/*
* 资质等级按照
大类
、等级类型分组
* 资质等级按照
行业
、等级类型分组
*/
@RequestMapping
(
"/certGroupBy
Category
AndLevel"
)
public
AjaxResult
certGroupBy
Category
AndLevel
()
{
@RequestMapping
(
"/certGroupBy
Major
AndLevel"
)
public
AjaxResult
certGroupBy
Major
AndLevel
()
{
return
marketAnalysisService
.
certGroupBy
Category
AndLevel
();
return
marketAnalysisService
.
certGroupBy
Major
AndLevel
();
}
/*
* 资质等级按照
小类
、等级类型分组
* 资质等级按照
大类、省份
、等级类型分组
*/
@RequestMapping
(
"/certGroupBy
TypeAnd
Level"
)
public
AjaxResult
certGroupBy
TypeAnd
Level
()
{
@RequestMapping
(
"/certGroupBy
CategoryProvince
Level"
)
public
AjaxResult
certGroupBy
CategoryProvince
Level
()
{
return
marketAnalysisService
.
certGroupBy
TypeAnd
Level
();
return
marketAnalysisService
.
certGroupBy
MajorProvince
Level
();
}
/*
*
资质等级按照大类、省份、等级类型
分组
*
中标数量按省份
分组
*/
@RequestMapping
(
"/certGroupByCategoryProvinceLevel"
)
public
AjaxResult
certGroupByCategoryProvinceLevel
()
{
@RequestMapping
(
"/countGroupByProvince"
)
public
AjaxResult
countGroupByProvince
(
@RequestBody
ComposeQueryDto
compose
)
{
return
marketAnalysisService
.
countGroupByProvince
(
compose
);
}
return
marketAnalysisService
.
certGroupByCategoryProvinceLevel
();
/*
* 中标数量按月份分组
*/
@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 @
550e9e23
package
com
.
dsk
.
web
.
controller
.
search
.
service
;
import
com.dsk.common.core.domain.AjaxResult
;
import
com.dsk.common.dtos.ComposeQueryDto
;
/**
* @Author liujie
...
...
@@ -11,9 +12,11 @@ public interface MarketAnalysisService {
AjaxResult
areaGroupByProvince
();
AjaxResult
certGroupBy
Type
AndLevel
();
AjaxResult
certGroupBy
Major
AndLevel
();
AjaxResult
certGroupBy
CategoryAnd
Level
();
AjaxResult
certGroupBy
MajorProvince
Level
();
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 @
550e9e23
...
...
@@ -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
;
...
...
@@ -29,18 +30,27 @@ public class MarketAnalysisServiceImpl implements MarketAnalysisService {
}
@Override
public
AjaxResult
certGroupByTypeAndLevel
()
{
return
null
;
public
AjaxResult
certGroupByMajorAndLevel
()
{
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/marketAnalysis/certGroupByMajorAndLevel"
,
null
);
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
@Override
public
AjaxResult
certGroupByCategoryAndLevel
()
{
return
null
;
public
AjaxResult
certGroupByMajorProvinceLevel
()
{
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/marketAnalysis/certGroupByMajorProvinceLevel"
,
null
);
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
@Override
public
AjaxResult
certGroupByCategoryProvinceLevel
()
{
public
AjaxResult
countGroupByProvince
(
ComposeQueryDto
compose
)
{
Map
<
String
,
Object
>
map
=
dskOpenApiUtil
.
requestBody
(
"/marketAnalysis/countGroupByProvince"
,
BeanUtil
.
beanToMap
(
compose
,
false
,
false
));
return
BeanUtil
.
toBean
(
map
,
AjaxResult
.
class
);
}
return
null
;
@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