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 9f471c0d
authored
Dec 11, 2020
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]数据风控模块修改
1 parent
2adf3882
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
src/main/java/cn/com/glsx/report/modules/controller/ChannelRiskDataController.java
src/main/java/cn/com/glsx/report/modules/service/ChannelRiskDataService.java
src/main/java/cn/com/glsx/report/modules/controller/ChannelRiskDataController.java
View file @
9f471c0
...
@@ -71,8 +71,8 @@ public class ChannelRiskDataController {
...
@@ -71,8 +71,8 @@ public class ChannelRiskDataController {
*/
*/
@GetMapping
(
"/findRegInstallSheet"
)
@GetMapping
(
"/findRegInstallSheet"
)
@ApiOperation
(
value
=
"查询省市区的区域安装单数"
)
@ApiOperation
(
value
=
"查询省市区的区域安装单数"
)
public
R
findRegInstallSheet
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
proviceName
,
@RequestParam
(
required
=
false
)
String
cityName
,
@RequestParam
(
required
=
false
)
String
timeRange
)
{
public
R
findRegInstallSheet
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
provi
n
ceName
,
@RequestParam
(
required
=
false
)
String
cityName
,
@RequestParam
(
required
=
false
)
String
timeRange
)
{
List
<
Map
<
String
,
String
>>
map
=
channelRiskDataService
.
findRegInstallSheet
(
channelName
,
proviceName
,
cityName
,
timeRange
);
List
<
Map
<
String
,
String
>>
map
=
channelRiskDataService
.
findRegInstallSheet
(
channelName
,
provi
n
ceName
,
cityName
,
timeRange
);
return
R
.
ok
().
data
(
map
);
return
R
.
ok
().
data
(
map
);
}
}
...
@@ -86,11 +86,11 @@ public class ChannelRiskDataController {
...
@@ -86,11 +86,11 @@ public class ChannelRiskDataController {
*/
*/
@GetMapping
(
"/findTimeInstallSheet"
)
@GetMapping
(
"/findTimeInstallSheet"
)
@ApiOperation
(
value
=
"查询省市区的每月安装单数"
)
@ApiOperation
(
value
=
"查询省市区的每月安装单数"
)
public
R
findTimeInstallSheet
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
proviceName
,
@RequestParam
(
required
=
false
)
String
cityName
,
@RequestParam
(
required
=
false
)
String
timeRange
)
{
public
R
findTimeInstallSheet
(
@RequestParam
(
required
=
false
)
String
channelName
,
@RequestParam
(
required
=
false
)
String
provi
n
ceName
,
@RequestParam
(
required
=
false
)
String
cityName
,
@RequestParam
(
required
=
false
)
String
timeRange
)
{
if
(
StringUtils
.
isEmpty
(
timeRange
))
{
if
(
StringUtils
.
isEmpty
(
timeRange
))
{
return
R
.
error
(
"请求参数错误,timeRange必传字段"
);
return
R
.
error
(
"请求参数错误,timeRange必传字段"
);
}
}
List
<
Map
<
String
,
String
>>
map
=
channelRiskDataService
.
findTimeInstallSheet
(
channelName
,
proviceName
,
cityName
,
timeRange
);
List
<
Map
<
String
,
String
>>
map
=
channelRiskDataService
.
findTimeInstallSheet
(
channelName
,
provi
n
ceName
,
cityName
,
timeRange
);
return
R
.
ok
().
data
(
map
);
return
R
.
ok
().
data
(
map
);
}
}
...
...
src/main/java/cn/com/glsx/report/modules/service/ChannelRiskDataService.java
View file @
9f471c0
...
@@ -101,6 +101,7 @@ public class ChannelRiskDataService {
...
@@ -101,6 +101,7 @@ public class ChannelRiskDataService {
list
.
forEach
(
index
->
{
list
.
forEach
(
index
->
{
Map
<
String
,
String
>
defaultValue
=
new
HashMap
<>();
Map
<
String
,
String
>
defaultValue
=
new
HashMap
<>();
defaultValue
.
put
(
"xAxis"
,
index
);
defaultValue
.
put
(
"xAxis"
,
index
);
//如果不存在,则初始化0,存在就是原来值
if
(!
xAxislist
.
contains
(
index
))
{
if
(!
xAxislist
.
contains
(
index
))
{
defaultValue
.
put
(
"value"
,
"0"
);
defaultValue
.
put
(
"value"
,
"0"
);
}
else
{
}
else
{
...
...
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