Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
Overview
Overview
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
base_platform_enterprise
gic-data-cloud
Commits
70b6cca8
Commit
70b6cca8
authored
Aug 27, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判空
parent
082bf723
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
GoDownComponent.java
...in/java/com/gic/cloud/web/controller/GoDownComponent.java
+24
-0
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/GoDownComponent.java
View file @
70b6cca8
...
@@ -120,6 +120,12 @@ public class GoDownComponent {
...
@@ -120,6 +120,12 @@ public class GoDownComponent {
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
if
((
params
.
getChannel
()
==
null
||
(
params
.
getChannel
()
==
StoreChannelEnum
.
OFFLINE
.
getChannel
()
&&
params
.
getLevel
()
==
levelVo
.
getLevel
()))
&&
wgs
==
1
){
if
((
params
.
getChannel
()
==
null
||
(
params
.
getChannel
()
==
StoreChannelEnum
.
OFFLINE
.
getChannel
()
&&
params
.
getLevel
()
==
levelVo
.
getLevel
()))
&&
wgs
==
1
){
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
params
.
setStoreInfoIdList
(
new
ArrayList
<>());
}
if
(
CollectionUtils
.
isEmpty
(
params
.
getOnlineStoreIdList
()))
{
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
}
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getOnlineStoreIdList
().
add
(
"-1"
);
params
.
getOnlineStoreIdList
().
add
(
"-1"
);
}
}
...
@@ -129,6 +135,12 @@ public class GoDownComponent {
...
@@ -129,6 +135,12 @@ public class GoDownComponent {
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
if
(
wgs
==
1
){
if
(
wgs
==
1
){
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
params
.
setStoreInfoIdList
(
new
ArrayList
<>());
}
if
(
CollectionUtils
.
isEmpty
(
params
.
getOnlineStoreIdList
()))
{
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
}
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getOnlineStoreIdList
().
add
(
"-1"
);
params
.
getOnlineStoreIdList
().
add
(
"-1"
);
}
}
...
@@ -138,6 +150,12 @@ public class GoDownComponent {
...
@@ -138,6 +150,12 @@ public class GoDownComponent {
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
if
(
params
.
getChannel
()
!=
null
&&
params
.
getChannel
()
==
1
&&
params
.
getLevel
()
==
levelVo
.
getLevel
()
&&
wgs
==
1
){
if
(
params
.
getChannel
()
!=
null
&&
params
.
getChannel
()
==
1
&&
params
.
getLevel
()
==
levelVo
.
getLevel
()
&&
wgs
==
1
){
params
.
setChannel
(
null
);
params
.
setChannel
(
null
);
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
params
.
setStoreInfoIdList
(
new
ArrayList
<>());
}
if
(
CollectionUtils
.
isEmpty
(
params
.
getOnlineStoreIdList
()))
{
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
}
params
.
getStoreInfoIdList
().
clear
();
params
.
getStoreInfoIdList
().
clear
();
params
.
getOnlineStoreIdList
().
clear
();
params
.
getOnlineStoreIdList
().
clear
();
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getStoreInfoIdList
().
add
(-
1
);
...
@@ -149,6 +167,12 @@ public class GoDownComponent {
...
@@ -149,6 +167,12 @@ public class GoDownComponent {
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
if
(
wgs
==
1
){
if
(
wgs
==
1
){
params
.
setChannel
(
null
);
params
.
setChannel
(
null
);
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
params
.
setStoreInfoIdList
(
new
ArrayList
<>());
}
if
(
CollectionUtils
.
isEmpty
(
params
.
getOnlineStoreIdList
()))
{
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
}
params
.
getStoreInfoIdList
().
clear
();
params
.
getStoreInfoIdList
().
clear
();
params
.
getOnlineStoreIdList
().
clear
();
params
.
getOnlineStoreIdList
().
clear
();
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getStoreInfoIdList
().
add
(-
1
);
...
...
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