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
0f520ea2
Commit
0f520ea2
authored
Aug 27, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
观云台小程序
parent
6e83d7c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
GoDownComponent.java
...in/java/com/gic/cloud/web/controller/GoDownComponent.java
+41
-0
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/GoDownComponent.java
View file @
0f520ea2
...
...
@@ -115,6 +115,47 @@ public class GoDownComponent {
return
levelVo
;
}
public
void
setValueTotal
(
CommonQO
params
,
LevelVo
levelVo
){
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
){
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getOnlineStoreIdList
().
add
(
"-1"
);
}
}
public
void
setValueTotal
(
CommonQO
params
){
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
if
(
wgs
==
1
){
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getOnlineStoreIdList
().
add
(
"-1"
);
}
}
public
void
setValueWgs
(
CommonQO
params
,
LevelVo
levelVo
){
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
if
(
params
.
getChannel
()
!=
null
&&
params
.
getChannel
()
==
1
&&
params
.
getLevel
()
==
levelVo
.
getLevel
()
&&
wgs
==
1
){
params
.
setChannel
(
null
);
params
.
getStoreInfoIdList
().
clear
();
params
.
getOnlineStoreIdList
().
clear
();
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getOnlineStoreIdList
().
add
(
"-1"
);
}
}
public
void
setValueWgs
(
CommonQO
params
){
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJson
());
if
(
wgs
==
1
){
params
.
setChannel
(
null
);
params
.
getStoreInfoIdList
().
clear
();
params
.
getOnlineStoreIdList
().
clear
();
params
.
getStoreInfoIdList
().
add
(-
1
);
params
.
getOnlineStoreIdList
().
add
(
"-1"
);
}
}
public
Page
<?>
parseData
(
Page
<?>
page
,
Integer
channel
,
Integer
enterpriseId
,
Integer
level
,
Integer
maxLevel
){
if
(
page
!=
null
&&
CollectionUtils
.
isNotEmpty
(
page
.
getResult
())){
if
(
channel
==
null
){
//全渠道
...
...
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