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
f659b2b5
Commit
f659b2b5
authored
Sep 08, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd规范
parent
465bffaf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
49 deletions
+50
-49
GoDownComponent.java
...in/java/com/gic/cloud/web/controller/GoDownComponent.java
+15
-15
IndexController.java
...in/java/com/gic/cloud/web/controller/IndexController.java
+16
-16
MemberCloudDataController.java
...m/gic/cloud/web/controller/MemberCloudDataController.java
+7
-7
StoreWidgetController.java
...a/com/gic/cloud/web/controller/StoreWidgetController.java
+6
-6
BaseSalesParamQo.java
.../src/main/java/com/gic/cloud/web/qo/BaseSalesParamQo.java
+6
-5
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/GoDownComponent.java
View file @
f659b2b5
...
@@ -87,11 +87,11 @@ public class GoDownComponent {
...
@@ -87,11 +87,11 @@ public class GoDownComponent {
}
}
public
LevelVo
setValue
(
AbstractCommonQo
params
,
BaseSalesVo
vo
){
public
LevelVo
setValue
(
AbstractCommonQo
params
,
BaseSalesVo
vo
){
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
()));
/******线下渠道需要点击下钻,该值只会在线下时才会使用********/
/******线下渠道需要点击下钻,该值只会在线下时才会使用********/
LevelVo
levelVo
=
this
.
storeSearchUtils
.
getLevel
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
SON
());
LevelVo
levelVo
=
this
.
storeSearchUtils
.
getLevel
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
son
());
if
(
params
.
getLevel
()
==
null
){
if
(
params
.
getLevel
()
==
null
){
params
.
setLevel
(
levelVo
.
getLevel
());
params
.
setLevel
(
levelVo
.
getLevel
());
}
}
...
@@ -105,7 +105,7 @@ public class GoDownComponent {
...
@@ -105,7 +105,7 @@ public class GoDownComponent {
/****首页进入基础页面时,如果渠道为空,根据当前条件判断渠道,channel==null表示多渠道***/
/****首页进入基础页面时,如果渠道为空,根据当前条件判断渠道,channel==null表示多渠道***/
if
(
params
.
getChannel
()
==
null
){
if
(
params
.
getChannel
()
==
null
){
/**********设置层级名称,只有在首次进入页面会展示,下钻均显示返回上一级*********/
/**********设置层级名称,只有在首次进入页面会展示,下钻均显示返回上一级*********/
Integer
newChannel
=
this
.
storeSearchUtils
.
getChannel
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
SON
());
Integer
newChannel
=
this
.
storeSearchUtils
.
getChannel
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
son
());
params
.
setChannel
(
newChannel
);
params
.
setChannel
(
newChannel
);
}
}
/***********如果是线下的第一层级,需要展示切换层级按钮*************/
/***********如果是线下的第一层级,需要展示切换层级按钮*************/
...
@@ -126,7 +126,7 @@ public class GoDownComponent {
...
@@ -126,7 +126,7 @@ public class GoDownComponent {
public
void
setValueTotal
(
AbstractCommonQo
params
,
LevelVo
levelVo
){
public
void
setValueTotal
(
AbstractCommonQo
params
,
LevelVo
levelVo
){
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
SON
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
son
());
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
boolean
isContainNoOwnership
=
(
params
.
getChannel
()
==
null
||
(
params
.
getChannel
()
==
StoreChannelEnum
.
OFFLINE
.
getChannel
().
intValue
()
&&
params
.
getLevel
().
intValue
()
==
levelVo
.
getLevel
()))
&&
wgs
==
1
;
boolean
isContainNoOwnership
=
(
params
.
getChannel
()
==
null
||
(
params
.
getChannel
()
==
StoreChannelEnum
.
OFFLINE
.
getChannel
().
intValue
()
&&
params
.
getLevel
().
intValue
()
==
levelVo
.
getLevel
()))
&&
wgs
==
1
;
if
(
isContainNoOwnership
){
if
(
isContainNoOwnership
){
...
@@ -142,7 +142,7 @@ public class GoDownComponent {
...
@@ -142,7 +142,7 @@ public class GoDownComponent {
}
}
public
void
setValueTotal
(
AbstractCommonQo
params
){
public
void
setValueTotal
(
AbstractCommonQo
params
){
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
SON
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
son
());
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
/**所有渠道或者线下渠道第一层级 合计算上无归属数据**/
if
(
wgs
==
1
){
if
(
wgs
==
1
){
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
...
@@ -157,7 +157,7 @@ public class GoDownComponent {
...
@@ -157,7 +157,7 @@ public class GoDownComponent {
}
}
public
void
setValueWgs
(
AbstractCommonQo
params
,
LevelVo
levelVo
){
public
void
setValueWgs
(
AbstractCommonQo
params
,
LevelVo
levelVo
){
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
SON
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
son
());
if
(
params
.
getChannel
()
!=
null
&&
params
.
getChannel
()
==
1
&&
params
.
getLevel
()
==
levelVo
.
getLevel
().
intValue
()
&&
wgs
==
1
){
if
(
params
.
getChannel
()
!=
null
&&
params
.
getChannel
()
==
1
&&
params
.
getLevel
()
==
levelVo
.
getLevel
().
intValue
()
&&
wgs
==
1
){
params
.
setChannel
(
null
);
params
.
setChannel
(
null
);
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
...
@@ -174,7 +174,7 @@ public class GoDownComponent {
...
@@ -174,7 +174,7 @@ public class GoDownComponent {
}
}
public
void
setValueWgs
(
AbstractCommonQo
params
){
public
void
setValueWgs
(
AbstractCommonQo
params
){
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
SON
());
Integer
wgs
=
storeSearchUtils
.
isWgs
(
params
.
getUserId
(),
params
.
getEnterpriseId
(),
params
.
getSearchJ
son
());
if
(
wgs
==
1
){
if
(
wgs
==
1
){
params
.
setChannel
(
null
);
params
.
setChannel
(
null
);
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
if
(
CollectionUtils
.
isEmpty
(
params
.
getStoreInfoIdList
()))
{
...
@@ -224,7 +224,7 @@ public class GoDownComponent {
...
@@ -224,7 +224,7 @@ public class GoDownComponent {
}
}
}
}
if
(
channel
==
StoreChannelEnum
.
OFFLINE
.
getChannel
().
intValue
()){
if
(
channel
==
StoreChannelEnum
.
OFFLINE
.
getChannel
().
intValue
()){
List
<
ClerkDTO
>
clerkD
TO
S
=
new
ArrayList
<>();
List
<
ClerkDTO
>
clerkD
to
S
=
new
ArrayList
<>();
if
(
level
.
intValue
()
==
clerkLevel
){
if
(
level
.
intValue
()
==
clerkLevel
){
List
<
String
>
clerkIdList
=
page
.
getResult
().
stream
().
map
(
b
->
{
List
<
String
>
clerkIdList
=
page
.
getResult
().
stream
().
map
(
b
->
{
...
@@ -232,18 +232,18 @@ public class GoDownComponent {
...
@@ -232,18 +232,18 @@ public class GoDownComponent {
return
baseSalesDTO
.
getAreaId
()
==
null
?
baseSalesDTO
.
getId
()
:
baseSalesDTO
.
getAreaId
();
return
baseSalesDTO
.
getAreaId
()
==
null
?
baseSalesDTO
.
getId
()
:
baseSalesDTO
.
getAreaId
();
}).
collect
(
Collectors
.
toList
());
}).
collect
(
Collectors
.
toList
());
log
.
info
(
"clerkIdList:{}"
,
JSON
.
toJSONString
(
clerkIdList
));
log
.
info
(
"clerkIdList:{}"
,
JSON
.
toJSONString
(
clerkIdList
));
clerkD
TO
S
=
this
.
clerkApiService
.
listClerkByIds
(
enterpriseId
,
StringUtils
.
join
(
clerkIdList
,
","
)).
getResult
();
clerkD
to
S
=
this
.
clerkApiService
.
listClerkByIds
(
enterpriseId
,
StringUtils
.
join
(
clerkIdList
,
","
)).
getResult
();
log
.
info
(
"clerkDtos:{}"
,
clerkD
TO
S
);
log
.
info
(
"clerkDtos:{}"
,
clerkD
to
S
);
}
}
final
Map
<
Integer
,
ClerkDTO
>
clerkD
TOMap
=
CollectionUtil
.
toMap
(
clerkDTO
S
,
"clerkId"
);
final
Map
<
Integer
,
ClerkDTO
>
clerkD
toMap
=
CollectionUtil
.
toMap
(
clerkDto
S
,
"clerkId"
);
log
.
info
(
"clerkDTOMap:{}"
,
JSON
.
toJSONString
(
clerkD
TO
Map
));
log
.
info
(
"clerkDTOMap:{}"
,
JSON
.
toJSONString
(
clerkD
to
Map
));
page
.
getResult
().
stream
().
forEach
(
b
->
{
page
.
getResult
().
stream
().
forEach
(
b
->
{
BaseDTO
baseSalesDTO
=
(
BaseDTO
)
b
;
BaseDTO
baseSalesDTO
=
(
BaseDTO
)
b
;
baseSalesDTO
.
setLevel
(
level
);
baseSalesDTO
.
setLevel
(
level
);
baseSalesDTO
.
setChannel
(
StoreChannelEnum
.
OFFLINE
.
getChannel
());
baseSalesDTO
.
setChannel
(
StoreChannelEnum
.
OFFLINE
.
getChannel
());
baseSalesDTO
.
setHasChildren
(
level
<=
maxLevel
?
1
:
0
);
baseSalesDTO
.
setHasChildren
(
level
<=
maxLevel
?
1
:
0
);
if
(
clerkD
TO
Map
!=
null
&&
level
.
intValue
()
==
clerkLevel
){
if
(
clerkD
to
Map
!=
null
&&
level
.
intValue
()
==
clerkLevel
){
ClerkDTO
clerkDTO
=
clerkD
TO
Map
.
get
(
baseSalesDTO
.
getAreaId
()
==
null
?
Integer
.
valueOf
(
baseSalesDTO
.
getId
())
:
Integer
.
valueOf
(
baseSalesDTO
.
getAreaId
()));
ClerkDTO
clerkDTO
=
clerkD
to
Map
.
get
(
baseSalesDTO
.
getAreaId
()
==
null
?
Integer
.
valueOf
(
baseSalesDTO
.
getId
())
:
Integer
.
valueOf
(
baseSalesDTO
.
getAreaId
()));
if
(
clerkDTO
!=
null
){
if
(
clerkDTO
!=
null
){
baseSalesDTO
.
setName
(
clerkDTO
.
getClerkName
());
baseSalesDTO
.
setName
(
clerkDTO
.
getClerkName
());
}
else
{
}
else
{
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/IndexController.java
View file @
f659b2b5
...
@@ -56,20 +56,20 @@ public class IndexController {
...
@@ -56,20 +56,20 @@ public class IndexController {
}
}
@RequestMapping
(
"index-sales"
)
@RequestMapping
(
"index-sales"
)
public
RestResponse
indexSales
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJ
SON
,
public
RestResponse
indexSales
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJ
son
,
DateTypeQo
dateTypeQo
,
String
mbrAreaId
,
Integer
dataType
){
DateTypeQo
dateTypeQo
,
String
mbrAreaId
,
Integer
dataType
){
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
userId
,
enterpriseId
,
searchJ
SON
);
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
userId
,
enterpriseId
,
searchJ
son
);
List
<
String
>
onLine
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
userId
,
enterpriseId
,
searchJ
SON
);
List
<
String
>
onLine
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
userId
,
enterpriseId
,
searchJ
son
);
ServiceResponse
<
IndexSalesDTO
>
indexSales
=
this
.
indexSalesApiService
.
getIndexSales
(
enterpriseId
,
list
,
onLine
,
ServiceResponse
<
IndexSalesDTO
>
indexSales
=
this
.
indexSalesApiService
.
getIndexSales
(
enterpriseId
,
list
,
onLine
,
StringUtils
.
isNoneBlank
(
mbrAreaId
)
?
Long
.
valueOf
(
mbrAreaId
)
:
null
,
dateTypeQo
.
getType
(),
dateTypeQo
.
getDate
(),
dataType
);
StringUtils
.
isNoneBlank
(
mbrAreaId
)
?
Long
.
valueOf
(
mbrAreaId
)
:
null
,
dateTypeQo
.
getType
(),
dateTypeQo
.
getDate
(),
dataType
);
return
RestResponse
.
success
(
EntityUtil
.
changeEntityByJSON
(
IndexSalesVo
.
class
,
indexSales
.
getResult
()));
return
RestResponse
.
success
(
EntityUtil
.
changeEntityByJSON
(
IndexSalesVo
.
class
,
indexSales
.
getResult
()));
}
}
@RequestMapping
(
"index-member"
)
@RequestMapping
(
"index-member"
)
public
RestResponse
indexMember
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJ
SON
,
public
RestResponse
indexMember
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJ
son
,
DateTypeQo
dateTypeQo
,
String
mbrAreaId
){
DateTypeQo
dateTypeQo
,
String
mbrAreaId
){
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
userId
,
enterpriseId
,
searchJ
SON
);
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
userId
,
enterpriseId
,
searchJ
son
);
List
<
String
>
onLine
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
userId
,
enterpriseId
,
searchJ
SON
);
List
<
String
>
onLine
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
userId
,
enterpriseId
,
searchJ
son
);
List
<
Long
>
mbrAreaIdList
=
this
.
dataAuthUtils
.
getMbrAreaId
(
userId
,
enterpriseId
);
List
<
Long
>
mbrAreaIdList
=
this
.
dataAuthUtils
.
getMbrAreaId
(
userId
,
enterpriseId
);
ServiceResponse
<
IndexMemberDTO
>
indexMember
=
this
.
indexSalesApiService
.
getIndexMember
(
enterpriseId
,
list
,
onLine
,
ServiceResponse
<
IndexMemberDTO
>
indexMember
=
this
.
indexSalesApiService
.
getIndexMember
(
enterpriseId
,
list
,
onLine
,
StringUtils
.
isNoneBlank
(
mbrAreaId
)
?
Long
.
valueOf
(
mbrAreaId
)
:
null
,
StringUtils
.
isNoneBlank
(
mbrAreaId
)
?
Long
.
valueOf
(
mbrAreaId
)
:
null
,
...
@@ -78,10 +78,10 @@ public class IndexController {
...
@@ -78,10 +78,10 @@ public class IndexController {
}
}
@RequestMapping
(
"index-consume"
)
@RequestMapping
(
"index-consume"
)
public
RestResponse
indexConsume
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJ
SON
,
public
RestResponse
indexConsume
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJ
son
,
DateTypeQo
dateTypeQo
,
String
mbrAreaId
){
DateTypeQo
dateTypeQo
,
String
mbrAreaId
){
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
userId
,
enterpriseId
,
searchJ
SON
);
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
userId
,
enterpriseId
,
searchJ
son
);
List
<
String
>
onLine
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
userId
,
enterpriseId
,
searchJ
SON
);
List
<
String
>
onLine
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
userId
,
enterpriseId
,
searchJ
son
);
List
<
Long
>
mbrAreaIdList
=
this
.
dataAuthUtils
.
getMbrAreaId
(
userId
,
enterpriseId
);
List
<
Long
>
mbrAreaIdList
=
this
.
dataAuthUtils
.
getMbrAreaId
(
userId
,
enterpriseId
);
ServiceResponse
<
IndexMemberOrderCntDTO
>
response1
=
this
.
indexSalesApiService
.
getIndexMemberOrderCnt
(
enterpriseId
,
list
,
onLine
,
ServiceResponse
<
IndexMemberOrderCntDTO
>
response1
=
this
.
indexSalesApiService
.
getIndexMemberOrderCnt
(
enterpriseId
,
list
,
onLine
,
StringUtils
.
isNoneBlank
(
mbrAreaId
)
?
Long
.
valueOf
(
mbrAreaId
)
:
null
,
StringUtils
.
isNoneBlank
(
mbrAreaId
)
?
Long
.
valueOf
(
mbrAreaId
)
:
null
,
...
@@ -101,11 +101,11 @@ public class IndexController {
...
@@ -101,11 +101,11 @@ public class IndexController {
log
.
info
(
"birthOrderCnt:{}"
,
JSON
.
toJSONString
(
birthOrderCnt
));
log
.
info
(
"birthOrderCnt:{}"
,
JSON
.
toJSONString
(
birthOrderCnt
));
IndexConsume
consume
=
new
IndexConsume
();
IndexConsume
consume
=
new
IndexConsume
();
if
(
response1
.
isSuccess
()
&&
response1
.
getResult
()
!=
null
&&
response2
.
getResult
()
!=
null
){
if
(
response1
.
isSuccess
()
&&
response1
.
getResult
()
!=
null
&&
response2
.
getResult
()
!=
null
){
IndexMemberOrderCntDTO
indexMemberOrderCntD
TO
1
=
response1
.
getResult
();
IndexMemberOrderCntDTO
indexMemberOrderCntD
to
1
=
response1
.
getResult
();
IndexMemberOrderCntDTO
indexMemberOrderCntD
TO
2
=
response2
.
getResult
();
IndexMemberOrderCntDTO
indexMemberOrderCntD
to
2
=
response2
.
getResult
();
consume
.
setMemberRate
(
DataFormatUtils
.
rate
(
indexMemberOrderCntD
TO2
.
getOrderCnt
(),
indexMemberOrderCntDTO
1
.
getOrderCnt
()));
consume
.
setMemberRate
(
DataFormatUtils
.
rate
(
indexMemberOrderCntD
to2
.
getOrderCnt
(),
indexMemberOrderCntDto
1
.
getOrderCnt
()));
String
divide
=
DataFormatUtils
.
divide
(
DataFormatUtils
.
divideDouble
(
indexMemberOrderCntD
TO2
.
getOrderCnt
(),
indexMemberOrderCntDTO
1
.
getOrderCntHb
()),
String
divide
=
DataFormatUtils
.
divide
(
DataFormatUtils
.
divideDouble
(
indexMemberOrderCntD
to2
.
getOrderCnt
(),
indexMemberOrderCntDto
1
.
getOrderCntHb
()),
DataFormatUtils
.
divideDouble
(
indexMemberOrderCntD
TO2
.
getOrderCnt
(),
indexMemberOrderCntDTO
1
.
getOrderCntHb
()));
DataFormatUtils
.
divideDouble
(
indexMemberOrderCntD
to2
.
getOrderCnt
(),
indexMemberOrderCntDto
1
.
getOrderCntHb
()));
consume
.
setMemberHb
(
divide
);
consume
.
setMemberHb
(
divide
);
}
}
if
(
oldOrderCnt
.
isSuccess
()
&&
oldOrderCnt
.
getResult
()
!=
null
){
if
(
oldOrderCnt
.
isSuccess
()
&&
oldOrderCnt
.
getResult
()
!=
null
){
...
@@ -140,8 +140,8 @@ public class IndexController {
...
@@ -140,8 +140,8 @@ public class IndexController {
}
}
@RequestMapping
(
"get-level"
)
@RequestMapping
(
"get-level"
)
public
RestResponse
getLevel
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJ
SON
){
public
RestResponse
getLevel
(
Integer
userId
,
Integer
enterpriseId
,
String
searchJ
son
){
LevelVo
level
=
this
.
storeSearchUtils
.
getLevel
(
userId
,
enterpriseId
,
searchJ
SON
);
LevelVo
level
=
this
.
storeSearchUtils
.
getLevel
(
userId
,
enterpriseId
,
searchJ
son
);
List
<
LevelNameVo
>
list
=
new
ArrayList
<>();
List
<
LevelNameVo
>
list
=
new
ArrayList
<>();
LevelNameVo
vo1
=
new
LevelNameVo
(
1
,
"第一层级"
,
1
>=
level
.
getLevel
()
&&
1
<=
level
.
getMaxLevel
()
?
1
:
0
);
LevelNameVo
vo1
=
new
LevelNameVo
(
1
,
"第一层级"
,
1
>=
level
.
getLevel
()
&&
1
<=
level
.
getMaxLevel
()
?
1
:
0
);
LevelNameVo
vo2
=
new
LevelNameVo
(
2
,
"第二层级"
,
2
>=
level
.
getLevel
()
&&
2
<=
level
.
getMaxLevel
()
?
1
:
0
);
LevelNameVo
vo2
=
new
LevelNameVo
(
2
,
"第二层级"
,
2
>=
level
.
getLevel
()
&&
2
<=
level
.
getMaxLevel
()
?
1
:
0
);
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/MemberCloudDataController.java
View file @
f659b2b5
...
@@ -58,7 +58,7 @@ public class MemberCloudDataController {
...
@@ -58,7 +58,7 @@ public class MemberCloudDataController {
@RequestMapping
(
"get-member-distribution-trend"
)
@RequestMapping
(
"get-member-distribution-trend"
)
public
RestResponse
queryMemberDistributionTrend
(
MemberDistributionTrendQoAbstract
params
)
{
public
RestResponse
queryMemberDistributionTrend
(
MemberDistributionTrendQoAbstract
params
)
{
log
.
info
(
"会员分布-趋势参数:{}"
,
JSON
.
toJSONString
(
params
));
log
.
info
(
"会员分布-趋势参数:{}"
,
JSON
.
toJSONString
(
params
));
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
()));
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
goDownComponent
.
setValueTotal
(
params
);
goDownComponent
.
setValueTotal
(
params
);
...
@@ -126,7 +126,7 @@ public class MemberCloudDataController {
...
@@ -126,7 +126,7 @@ public class MemberCloudDataController {
public
RestResponse
queryMemberBasicPortrait
(
MemberPortraitQoAbstract
params
)
{
public
RestResponse
queryMemberBasicPortrait
(
MemberPortraitQoAbstract
params
)
{
log
.
info
(
"会员基础画像参数:{}"
,
JSON
.
toJSONString
(
params
));
log
.
info
(
"会员基础画像参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
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
(
memberCloudDataApiService
.
queryMemberBasicPortrait
(
params
));
return
ResultControllerUtils
.
commonResult
(
memberCloudDataApiService
.
queryMemberBasicPortrait
(
params
));
...
@@ -136,7 +136,7 @@ public class MemberCloudDataController {
...
@@ -136,7 +136,7 @@ public class MemberCloudDataController {
public
RestResponse
getMemberPortraitOverview
(
MemberPortraitQoAbstract
params
)
{
public
RestResponse
getMemberPortraitOverview
(
MemberPortraitQoAbstract
params
)
{
log
.
info
(
"会员画像-概况参数:{}"
,
JSON
.
toJSONString
(
params
));
log
.
info
(
"会员画像-概况参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
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
(
memberCloudDataApiService
.
getMemberPortraitOverview
(
params
));
return
ResultControllerUtils
.
commonResult
(
memberCloudDataApiService
.
getMemberPortraitOverview
(
params
));
...
@@ -146,7 +146,7 @@ public class MemberCloudDataController {
...
@@ -146,7 +146,7 @@ public class MemberCloudDataController {
public
RestResponse
queryMemberCustomPortrait
(
MemberCustomPortraitQoAbstract
params
)
{
public
RestResponse
queryMemberCustomPortrait
(
MemberCustomPortraitQoAbstract
params
)
{
log
.
info
(
"会员自定义画像参数:{}"
,
JSON
.
toJSONString
(
params
));
log
.
info
(
"会员自定义画像参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
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
(
memberCloudDataApiService
.
queryMemberCustomPortrait
(
params
));
return
ResultControllerUtils
.
commonResult
(
memberCloudDataApiService
.
queryMemberCustomPortrait
(
params
));
...
@@ -156,7 +156,7 @@ public class MemberCloudDataController {
...
@@ -156,7 +156,7 @@ public class MemberCloudDataController {
public
RestResponse
getMemberRecruitOverview
(
MemberOverviewQoAbstract
params
)
{
public
RestResponse
getMemberRecruitOverview
(
MemberOverviewQoAbstract
params
)
{
log
.
info
(
"会员概况-会员招募概况参数:{}"
,
JSON
.
toJSONString
(
params
));
log
.
info
(
"会员概况-会员招募概况参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
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
(
memberCloudDataApiService
.
getMemberRecruitOverview
(
params
));
return
ResultControllerUtils
.
commonResult
(
memberCloudDataApiService
.
getMemberRecruitOverview
(
params
));
...
@@ -166,7 +166,7 @@ public class MemberCloudDataController {
...
@@ -166,7 +166,7 @@ public class MemberCloudDataController {
public
RestResponse
queryMemberRecruitTrend
(
MemberOverviewQoAbstract
params
)
{
public
RestResponse
queryMemberRecruitTrend
(
MemberOverviewQoAbstract
params
)
{
log
.
info
(
"会员概况-会员招募趋势参数:{}"
,
JSON
.
toJSONString
(
params
));
log
.
info
(
"会员概况-会员招募趋势参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
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
(
memberCloudDataApiService
.
queryMemberRecruitTrend
(
params
));
return
ResultControllerUtils
.
commonResult
(
memberCloudDataApiService
.
queryMemberRecruitTrend
(
params
));
...
@@ -212,7 +212,7 @@ public class MemberCloudDataController {
...
@@ -212,7 +212,7 @@ public class MemberCloudDataController {
log
.
info
(
"会员自定义画像-字段筛选参数:{}"
,
JSON
.
toJSONString
(
params
));
log
.
info
(
"会员自定义画像-字段筛选参数:{}"
,
JSON
.
toJSONString
(
params
));
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
params
.
setOnlineStoreIdList
(
new
ArrayList
<>());
Integer
enterpriseId
=
params
.
getEnterpriseId
();
Integer
enterpriseId
=
params
.
getEnterpriseId
();
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
);
ServiceResponse
<
List
<
MemberCustomPortraitDTO
>>
fieldListRes
=
memberCloudDataApiService
.
listCustomField
(
params
);
ServiceResponse
<
List
<
MemberCustomPortraitDTO
>>
fieldListRes
=
memberCloudDataApiService
.
listCustomField
(
params
);
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreWidgetController.java
View file @
f659b2b5
...
@@ -323,7 +323,7 @@ public class StoreWidgetController {
...
@@ -323,7 +323,7 @@ public class StoreWidgetController {
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setStoreInfoIds
(
StringUtils
.
join
(
storeAuth
.
getStoreInfoIdList
(),
" "
));
storeSearchDTO
.
setStoreInfoIds
(
StringUtils
.
join
(
storeAuth
.
getStoreInfoIdList
(),
" "
));
Page
<
StoreDTO
>
result
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
pageNum
,
pageSize
).
getResult
();
Page
<
StoreDTO
>
result
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
pageNum
,
pageSize
).
getResult
();
Map
<
Integer
,
AttentionStoreDTO
>
attentionStoreD
TO
Map
=
this
.
storeAttentionApiService
.
getAllAttenttionStore
(
userId
,
enterpriseId
).
getResult
();
Map
<
Integer
,
AttentionStoreDTO
>
attentionStoreD
to
Map
=
this
.
storeAttentionApiService
.
getAllAttenttionStore
(
userId
,
enterpriseId
).
getResult
();
page
.
setTotalCount
(
result
.
getTotalCount
());
page
.
setTotalCount
(
result
.
getTotalCount
());
page
.
setTotalPage
(
result
.
getTotalPage
());
page
.
setTotalPage
(
result
.
getTotalPage
());
if
(
CollectionUtils
.
isNotEmpty
(
result
.
getResult
())){
if
(
CollectionUtils
.
isNotEmpty
(
result
.
getResult
())){
...
@@ -334,7 +334,7 @@ public class StoreWidgetController {
...
@@ -334,7 +334,7 @@ public class StoreWidgetController {
searchVo
.
setName
(
storeDTO
.
getStoreName
());
searchVo
.
setName
(
storeDTO
.
getStoreName
());
searchVo
.
setIdChain
((
map
.
get
(
storeDTO
.
getStoreGroupId
())
!=
null
?
map
.
get
(
storeDTO
.
getStoreGroupId
()).
getIdChain
()
:
""
)
+
storeDTO
.
getStoreInfoId
()+
"_"
);
searchVo
.
setIdChain
((
map
.
get
(
storeDTO
.
getStoreGroupId
())
!=
null
?
map
.
get
(
storeDTO
.
getStoreGroupId
()).
getIdChain
()
:
""
)
+
storeDTO
.
getStoreInfoId
()+
"_"
);
searchVo
.
setNameChain
((
map
.
get
(
storeDTO
.
getStoreGroupId
())!=
null
?
map
.
get
(
storeDTO
.
getStoreGroupId
()).
getNameChain
()
:
""
)
+
storeDTO
.
getStoreName
()
+
"/"
);
searchVo
.
setNameChain
((
map
.
get
(
storeDTO
.
getStoreGroupId
())!=
null
?
map
.
get
(
storeDTO
.
getStoreGroupId
()).
getNameChain
()
:
""
)
+
storeDTO
.
getStoreName
()
+
"/"
);
searchVo
.
setHasAttention
(
attentionStoreD
TO
Map
.
get
(
storeDTO
.
getStoreInfoId
())
==
null
?
0
:
1
);
searchVo
.
setHasAttention
(
attentionStoreD
to
Map
.
get
(
storeDTO
.
getStoreInfoId
())
==
null
?
0
:
1
);
storeSearchVoList
.
add
(
searchVo
);
storeSearchVoList
.
add
(
searchVo
);
}
}
page
.
setResult
(
storeSearchVoList
);
page
.
setResult
(
storeSearchVoList
);
...
@@ -397,10 +397,10 @@ public class StoreWidgetController {
...
@@ -397,10 +397,10 @@ public class StoreWidgetController {
}
}
@RequestMapping
(
"get-store-count"
)
@RequestMapping
(
"get-store-count"
)
public
RestResponse
getStoreCount
(
String
searchJ
SON
,
Integer
userId
,
Integer
enterpriseId
){
public
RestResponse
getStoreCount
(
String
searchJ
son
,
Integer
userId
,
Integer
enterpriseId
){
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
userId
,
enterpriseId
,
searchJ
SON
);
List
<
Integer
>
list
=
this
.
storeSearchUtils
.
storeSearch
(
userId
,
enterpriseId
,
searchJ
son
);
List
<
String
>
stringList
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
userId
,
enterpriseId
,
searchJ
SON
);
List
<
String
>
stringList
=
this
.
storeSearchUtils
.
onLineStoreSearch
(
userId
,
enterpriseId
,
searchJ
son
);
log
.
info
(
"getStoreCount:{},{},{},{},{}"
,
searchJ
SON
,
userId
,
enterpriseId
,
list
.
size
(),
stringList
.
size
());
log
.
info
(
"getStoreCount:{},{},{},{},{}"
,
searchJ
son
,
userId
,
enterpriseId
,
list
.
size
(),
stringList
.
size
());
return
RestResponse
.
success
(
list
.
size
()
+
stringList
.
size
());
return
RestResponse
.
success
(
list
.
size
()
+
stringList
.
size
());
}
}
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/qo/BaseSalesParamQo.java
View file @
f659b2b5
...
@@ -10,7 +10,7 @@ public class BaseSalesParamQo {
...
@@ -10,7 +10,7 @@ public class BaseSalesParamQo {
private
Integer
channel
;
private
Integer
channel
;
private
Integer
userId
;
private
Integer
userId
;
private
Integer
enterpriseId
;
private
Integer
enterpriseId
;
private
String
searchJ
SON
;
private
String
searchJ
son
;
private
Integer
type
;
private
Integer
type
;
private
String
date
;
private
String
date
;
private
String
mbrAreaId
;
private
String
mbrAreaId
;
...
@@ -45,12 +45,13 @@ public class BaseSalesParamQo {
...
@@ -45,12 +45,13 @@ public class BaseSalesParamQo {
this
.
enterpriseId
=
enterpriseId
;
this
.
enterpriseId
=
enterpriseId
;
}
}
public
String
getSearchJ
SON
()
{
public
String
getSearchJ
son
()
{
return
searchJ
SON
;
return
searchJ
son
;
}
}
public
void
setSearchJSON
(
String
searchJSON
)
{
public
BaseSalesParamQo
setSearchJson
(
String
searchJson
)
{
this
.
searchJSON
=
searchJSON
;
this
.
searchJson
=
searchJson
;
return
this
;
}
}
public
Integer
getType
()
{
public
Integer
getType
()
{
...
...
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