Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-reportcenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e66f608e
authored
Dec 14, 2020
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码修改
1 parent
094340b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
src/main/java/cn/com/glsx/report/modules/controller/ChannelRiskDataController.java
src/main/java/cn/com/glsx/report/modules/controller/ChannelRiskDataController.java
View file @
e66f608
...
@@ -4,6 +4,7 @@ import cn.com.glsx.report.modules.model.ChannelRiskDataModel;
...
@@ -4,6 +4,7 @@ import cn.com.glsx.report.modules.model.ChannelRiskDataModel;
import
cn.com.glsx.report.modules.model.param.ChannelRiskDataSearch
;
import
cn.com.glsx.report.modules.model.param.ChannelRiskDataSearch
;
import
cn.com.glsx.report.modules.service.ChannelRiskDataService
;
import
cn.com.glsx.report.modules.service.ChannelRiskDataService
;
import
com.github.pagehelper.PageInfo
;
import
com.github.pagehelper.PageInfo
;
import
com.glsx.plat.context.utils.validator.AssertUtils
;
import
com.glsx.plat.core.web.R
;
import
com.glsx.plat.core.web.R
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -54,9 +55,7 @@ public class ChannelRiskDataController {
...
@@ -54,9 +55,7 @@ public class ChannelRiskDataController {
@GetMapping
(
"/findChannelAllRiskData"
)
@GetMapping
(
"/findChannelAllRiskData"
)
@ApiOperation
(
value
=
"查询渠道的所有数据(正常的或者疑似网点的)"
)
@ApiOperation
(
value
=
"查询渠道的所有数据(正常的或者疑似网点的)"
)
public
R
findChannelAllRiskData
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
isExcep
)
{
public
R
findChannelAllRiskData
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
isExcep
)
{
if
(
StringUtils
.
isEmpty
(
isExcep
))
{
AssertUtils
.
isNull
(
isExcep
,
"参数有误"
);
return
R
.
error
(
"请求参数错误,isExcep必传字段"
);
}
List
<
ChannelRiskDataModel
>
channelAllRiskData
=
channelRiskDataService
.
findChannelAllRiskData
(
channelName
,
isExcep
);
List
<
ChannelRiskDataModel
>
channelAllRiskData
=
channelRiskDataService
.
findChannelAllRiskData
(
channelName
,
isExcep
);
return
R
.
ok
().
data
(
channelAllRiskData
);
return
R
.
ok
().
data
(
channelAllRiskData
);
}
}
...
@@ -72,6 +71,7 @@ public class ChannelRiskDataController {
...
@@ -72,6 +71,7 @@ public class ChannelRiskDataController {
@GetMapping
(
"/findRegInstallSheet"
)
@GetMapping
(
"/findRegInstallSheet"
)
@ApiOperation
(
value
=
"查询省市区的区域安装单数"
)
@ApiOperation
(
value
=
"查询省市区的区域安装单数"
)
public
R
findRegInstallSheet
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
provinceName
,
@RequestParam
(
required
=
false
)
String
cityName
,
@RequestParam
(
required
=
false
)
String
timeRange
)
{
public
R
findRegInstallSheet
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
provinceName
,
@RequestParam
(
required
=
false
)
String
cityName
,
@RequestParam
(
required
=
false
)
String
timeRange
)
{
AssertUtils
.
isNull
(
timeRange
,
"参数有误"
);
List
<
Map
<
String
,
String
>>
map
=
channelRiskDataService
.
findRegInstallSheet
(
channelName
,
provinceName
,
cityName
,
timeRange
);
List
<
Map
<
String
,
String
>>
map
=
channelRiskDataService
.
findRegInstallSheet
(
channelName
,
provinceName
,
cityName
,
timeRange
);
return
R
.
ok
().
data
(
map
);
return
R
.
ok
().
data
(
map
);
}
}
...
@@ -87,9 +87,7 @@ public class ChannelRiskDataController {
...
@@ -87,9 +87,7 @@ public class ChannelRiskDataController {
@GetMapping
(
"/findTimeInstallSheet"
)
@GetMapping
(
"/findTimeInstallSheet"
)
@ApiOperation
(
value
=
"查询省市区的每月安装单数"
)
@ApiOperation
(
value
=
"查询省市区的每月安装单数"
)
public
R
findTimeInstallSheet
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
provinceName
,
@RequestParam
(
required
=
false
)
String
cityName
,
@RequestParam
(
required
=
false
)
String
timeRange
)
{
public
R
findTimeInstallSheet
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
provinceName
,
@RequestParam
(
required
=
false
)
String
cityName
,
@RequestParam
(
required
=
false
)
String
timeRange
)
{
if
(
StringUtils
.
isEmpty
(
timeRange
))
{
AssertUtils
.
isNull
(
timeRange
,
"参数有误"
);
return
R
.
error
(
"请求参数错误,timeRange必传字段"
);
}
List
<
Map
<
String
,
Object
>>
map
=
channelRiskDataService
.
findTimeInstallSheet
(
channelName
,
provinceName
,
cityName
,
timeRange
);
List
<
Map
<
String
,
Object
>>
map
=
channelRiskDataService
.
findTimeInstallSheet
(
channelName
,
provinceName
,
cityName
,
timeRange
);
return
R
.
ok
().
data
(
map
);
return
R
.
ok
().
data
(
map
);
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment