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 5d4041bc
authored
Dec 09, 2020
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]数据风控模块修改
1 parent
7a5d1982
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
12 deletions
src/main/java/cn/com/glsx/datariskcon/modules/service/ChannelRiskDataService.java
src/main/java/cn/com/glsx/datariskcon/modules/service/ChannelRiskDataService.java
View file @
5d4041b
...
@@ -60,13 +60,8 @@ public class ChannelRiskDataService {
...
@@ -60,13 +60,8 @@ public class ChannelRiskDataService {
* @return List<Map < String, String>>
* @return List<Map < String, String>>
*/
*/
public
List
<
Map
<
String
,
String
>>
findRegInstallSheet
(
String
channelName
,
String
proviceName
,
String
cityName
,
String
timeRange
)
{
public
List
<
Map
<
String
,
String
>>
findRegInstallSheet
(
String
channelName
,
String
proviceName
,
String
cityName
,
String
timeRange
)
{
String
monthNum
=
null
;
List
<
Map
<
String
,
String
>>
map
=
new
ArrayList
<>();
List
<
Map
<
String
,
String
>>
map
=
new
ArrayList
<>();
if
(
Constants
.
ONE_YEAR
.
equals
(
timeRange
))
{
String
monthNum
=
converMonthNum
(
timeRange
);
monthNum
=
"12"
;
}
else
if
(
Constants
.
HALF_YEAR
.
equals
(
timeRange
))
{
monthNum
=
"6"
;
}
if
(
StringUtils
.
isEmpty
(
proviceName
)
&&
StringUtils
.
isEmpty
(
cityName
))
{
if
(
StringUtils
.
isEmpty
(
proviceName
)
&&
StringUtils
.
isEmpty
(
cityName
))
{
map
=
channelRiskDataMapper
.
findProInstallSheet
(
monthNum
,
channelName
);
map
=
channelRiskDataMapper
.
findProInstallSheet
(
monthNum
,
channelName
);
}
else
if
(
StringUtils
.
isNotEmpty
(
proviceName
))
{
}
else
if
(
StringUtils
.
isNotEmpty
(
proviceName
))
{
...
@@ -86,13 +81,8 @@ public class ChannelRiskDataService {
...
@@ -86,13 +81,8 @@ public class ChannelRiskDataService {
* @return List<Map < String, String>>
* @return List<Map < String, String>>
*/
*/
public
List
<
Map
<
String
,
String
>>
findTimeInstallSheet
(
String
channelName
,
String
proviceName
,
String
cityName
,
String
timeRange
)
{
public
List
<
Map
<
String
,
String
>>
findTimeInstallSheet
(
String
channelName
,
String
proviceName
,
String
cityName
,
String
timeRange
)
{
String
monthNum
=
null
;
List
<
Map
<
String
,
String
>>
map
=
new
ArrayList
<>();
List
<
Map
<
String
,
String
>>
map
=
new
ArrayList
<>();
if
(
Constants
.
ONE_YEAR
.
equals
(
timeRange
))
{
String
monthNum
=
converMonthNum
(
timeRange
);
monthNum
=
"12"
;
}
else
if
(
Constants
.
HALF_YEAR
.
equals
(
timeRange
))
{
monthNum
=
"6"
;
}
if
(
StringUtils
.
isEmpty
(
proviceName
)
&&
StringUtils
.
isEmpty
(
cityName
))
{
if
(
StringUtils
.
isEmpty
(
proviceName
)
&&
StringUtils
.
isEmpty
(
cityName
))
{
map
=
channelRiskDataMapper
.
findTimeInstallSheet
(
monthNum
,
channelName
);
map
=
channelRiskDataMapper
.
findTimeInstallSheet
(
monthNum
,
channelName
);
}
else
if
(
StringUtils
.
isNotEmpty
(
proviceName
))
{
}
else
if
(
StringUtils
.
isNotEmpty
(
proviceName
))
{
...
@@ -141,4 +131,20 @@ public class ChannelRiskDataService {
...
@@ -141,4 +131,20 @@ public class ChannelRiskDataService {
List
<
String
>
list
=
channelRiskDataMapper
.
findAllChannel
();
List
<
String
>
list
=
channelRiskDataMapper
.
findAllChannel
();
return
list
;
return
list
;
}
}
/**
* 转化日期
*
* @param timeRange 日期范围
* @return String
*/
public
String
converMonthNum
(
String
timeRange
){
String
monthNum
=
null
;
if
(
Constants
.
ONE_YEAR
.
equals
(
timeRange
))
{
monthNum
=
"12"
;
}
else
if
(
Constants
.
HALF_YEAR
.
equals
(
timeRange
))
{
monthNum
=
"6"
;
}
return
monthNum
;
}
}
}
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