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
cdad5ff2
Commit
cdad5ff2
authored
Sep 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd规范
parent
f659b2b5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
BaseSalesController.java
...ava/com/gic/cloud/web/controller/BaseSalesController.java
+5
-5
ConsumeStructureController.java
.../gic/cloud/web/controller/ConsumeStructureController.java
+0
-0
PerformanceOverviewController.java
...c/cloud/web/controller/PerformanceOverviewController.java
+2
-2
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/BaseSalesController.java
View file @
cdad5ff2
...
@@ -54,7 +54,7 @@ public class BaseSalesController {
...
@@ -54,7 +54,7 @@ public class BaseSalesController {
Integer
maxLevel
=
0
;
Integer
maxLevel
=
0
;
/******线下渠道需要点击下钻,该值只会在线下时才会使用********/
/******线下渠道需要点击下钻,该值只会在线下时才会使用********/
LevelVo
levelVo
=
this
.
storeSearchUtils
.
getLevel
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
SON
());
LevelVo
levelVo
=
this
.
storeSearchUtils
.
getLevel
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
son
());
maxLevel
=
levelVo
.
getMaxLevel
();
maxLevel
=
levelVo
.
getMaxLevel
();
if
(
qo
.
getLevel
()
==
null
){
if
(
qo
.
getLevel
()
==
null
){
qo
.
setLevel
(
levelVo
.
getLevel
());
qo
.
setLevel
(
levelVo
.
getLevel
());
...
@@ -68,7 +68,7 @@ public class BaseSalesController {
...
@@ -68,7 +68,7 @@ public class BaseSalesController {
/****首页进入基础页面时,如果渠道为空,根据当前条件判断渠道,channel==null表示多渠道***/
/****首页进入基础页面时,如果渠道为空,根据当前条件判断渠道,channel==null表示多渠道***/
if
(
qo
.
getChannel
()
==
null
){
if
(
qo
.
getChannel
()
==
null
){
/**********设置层级名称,只有在首次进入页面会展示,下钻均显示返回上一级*********/
/**********设置层级名称,只有在首次进入页面会展示,下钻均显示返回上一级*********/
Integer
newChannel
=
this
.
storeSearchUtils
.
getChannel
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
SON
());
Integer
newChannel
=
this
.
storeSearchUtils
.
getChannel
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
son
());
qo
.
setChannel
(
newChannel
);
qo
.
setChannel
(
newChannel
);
}
}
/***********如果是线下的第一层级或者门店导购层级,需要展示切换层级按钮*************/
/***********如果是线下的第一层级或者门店导购层级,需要展示切换层级按钮*************/
...
@@ -92,7 +92,7 @@ public class BaseSalesController {
...
@@ -92,7 +92,7 @@ public class BaseSalesController {
vo
.
setPage
(
this
.
goDownComponent
.
parseData
(
response
.
getResult
(),
qo
.
getChannel
(),
qo
.
getEnterpriseId
(),
qo
.
getLevel
(),
maxLevel
));
vo
.
setPage
(
this
.
goDownComponent
.
parseData
(
response
.
getResult
(),
qo
.
getChannel
(),
qo
.
getEnterpriseId
(),
qo
.
getLevel
(),
maxLevel
));
//合计
//合计
dto
.
setCountType
(
2
);
dto
.
setCountType
(
2
);
Integer
wgs
=
storeSearchUtils
.
isWgs
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
SON
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
son
());
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
boolean
isContainNoOwnership
=
(
qo
.
getChannel
()
==
null
||
(
qo
.
getChannel
()
==
StoreChannelEnum
.
OFFLINE
.
getChannel
().
intValue
()
&&
qo
.
getLevel
().
intValue
()
==
levelVo
.
getLevel
()))
&&
wgs
==
1
;
boolean
isContainNoOwnership
=
(
qo
.
getChannel
()
==
null
||
(
qo
.
getChannel
()
==
StoreChannelEnum
.
OFFLINE
.
getChannel
().
intValue
()
&&
qo
.
getLevel
().
intValue
()
==
levelVo
.
getLevel
()))
&&
wgs
==
1
;
if
(
isContainNoOwnership
){
if
(
isContainNoOwnership
){
...
@@ -118,8 +118,8 @@ public class BaseSalesController {
...
@@ -118,8 +118,8 @@ public class BaseSalesController {
}
}
private
void
setCommonBaseDTO
(
BaseSalesParamsDTO
dto
,
BaseSalesParamQo
qo
,
List
<
Integer
>
childrenStoreGroupIdList
)
{
private
void
setCommonBaseDTO
(
BaseSalesParamsDTO
dto
,
BaseSalesParamQo
qo
,
List
<
Integer
>
childrenStoreGroupIdList
)
{
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
SON
());
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
son
());
List
<
String
>
onLine
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
SON
());
List
<
String
>
onLine
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
(),
qo
.
getSearchJ
son
());
List
<
Long
>
mbrAreaIdList
=
this
.
dataAuthUtils
.
getMbrAreaId
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
());
List
<
Long
>
mbrAreaIdList
=
this
.
dataAuthUtils
.
getMbrAreaId
(
qo
.
getUserId
(),
qo
.
getEnterpriseId
());
dto
.
setChannel
(
qo
.
getChannel
());
dto
.
setChannel
(
qo
.
getChannel
());
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/ConsumeStructureController.java
View file @
cdad5ff2
This diff is collapsed.
Click to expand it.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/PerformanceOverviewController.java
View file @
cdad5ff2
...
@@ -35,8 +35,8 @@ public class PerformanceOverviewController {
...
@@ -35,8 +35,8 @@ public class PerformanceOverviewController {
@RequestMapping
(
"get-performance-overview"
)
@RequestMapping
(
"get-performance-overview"
)
public
RestResponse
selectPerformanceOverview
(
PerformanceOverviewQoAbstract
params
)
{
public
RestResponse
selectPerformanceOverview
(
PerformanceOverviewQoAbstract
params
)
{
log
.
info
(
"业绩概览参数:{}"
,
JSON
.
toJSONString
(
params
));
log
.
info
(
"业绩概览参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
storeSearchUtils
.
onLineStoreSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
SON
()));
params
.
setOnlineStoreIdList
(
storeSearchUtils
.
onLineStoreSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
son
()));
params
.
setStoreInfoIdList
(
storeSearchUtils
.
storeSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
SON
()));
params
.
setStoreInfoIdList
(
storeSearchUtils
.
storeSearch
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
son
()));
params
.
setMemberCardIdList
(
dataAuthUtils
.
getMbrAreaId
(
params
.
getUserId
(),
params
.
getEnterpriseId
()));
params
.
setMemberCardIdList
(
dataAuthUtils
.
getMbrAreaId
(
params
.
getUserId
(),
params
.
getEnterpriseId
()));
goDownComponent
.
setValueTotal
(
params
);
goDownComponent
.
setValueTotal
(
params
);
return
ResultControllerUtils
.
commonResult
(
performanceOverviewApiService
.
selectPerformanceOverview
(
params
));
return
ResultControllerUtils
.
commonResult
(
performanceOverviewApiService
.
selectPerformanceOverview
(
params
));
...
...
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