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
a39f2785
Commit
a39f2785
authored
Apr 02, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店控件修复
parent
3dbec5fd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
6 deletions
+40
-6
StoreSearchUtils.java
...n/java/com/gic/cloud/web/controller/StoreSearchUtils.java
+1
-0
StoreWidgetController.java
...a/com/gic/cloud/web/controller/StoreWidgetController.java
+19
-6
StoreSearchQo.java
...app/src/main/java/com/gic/cloud/web/qo/StoreSearchQo.java
+20
-0
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreSearchUtils.java
View file @
a39f2785
...
...
@@ -103,6 +103,7 @@ public class StoreSearchUtils {
storeSearchDTO
.
setStoreStatuss
(
StringUtils
.
isBlank
(
storeSearchQo
.
getStoreStatus
())
?
null
:
storeSearchQo
.
getStoreStatus
().
replaceAll
(
","
,
" "
));
storeSearchDTO
.
setRealStatuss
(
StringUtils
.
isBlank
(
storeSearchQo
.
getErpStatus
())
?
null
:
storeSearchQo
.
getErpStatus
().
replaceAll
(
","
,
" "
));
storeSearchDTO
.
setStoreTags
(
StringUtils
.
isBlank
(
storeSearchQo
.
getStoreTag
())
?
null
:
storeSearchQo
.
getStoreTag
().
replaceAll
(
","
,
" "
));
storeSearchDTO
.
setStoreBrandIds
(
StringUtils
.
isBlank
(
storeSearchQo
.
getStoreBrand
())
?
null
:
storeSearchQo
.
getStoreBrand
().
replaceAll
(
","
,
" "
));
if
(
storeSearchQo
.
getAttentionStore
()
==
1
){
List
<
AttentionStoreDTO
>
result
=
this
.
storeAttentionApiService
.
pageStoreAttention
(
userId
,
enterpriseId
,
1
,
Integer
.
MAX_VALUE
).
getResult
().
getResult
();
List
<
Integer
>
list
=
result
.
stream
().
filter
(
t
->
{
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreWidgetController.java
View file @
a39f2785
...
...
@@ -304,12 +304,14 @@ public class StoreWidgetController {
int
typeOfStoreGroup
=
1
;
//线下门店
int
typeOfOfflineStore
=
2
;
//线上店铺
int
typeOfShop
=
3
;
List
<
StoreSearchVo
>
storeSearchVoList
=
new
ArrayList
<>();
if
(
type
==
typeOfStoreGroup
){
Page
<
StoreGroupDTO
>
result
=
this
.
storeGroupApiService
.
pageStoreGroupByIds
(
null
,
enterpriseId
,
null
,
search
,
pageSize
,
pageNum
).
getResult
();
page
.
setTotalPage
(
result
.
getTotalPage
());
page
.
setTotalCount
(
result
.
getTotalCount
());
if
(
CollectionUtils
.
isNotEmpty
(
result
.
getResult
())){
List
<
StoreSearchVo
>
storeSearchVoList
=
new
ArrayList
<>();
for
(
StoreGroupDTO
storeGroupDTO
:
result
.
getResult
()){
StoreSearchVo
searchVo
=
new
StoreSearchVo
();
searchVo
.
setId
(
storeGroupDTO
.
getStoreGroupId
()+
""
);
...
...
@@ -318,7 +320,6 @@ public class StoreWidgetController {
searchVo
.
setNameChain
(
map
.
get
(
storeGroupDTO
.
getStoreGroupId
()).
getNameChain
());
storeSearchVoList
.
add
(
searchVo
);
}
page
.
setResult
(
storeSearchVoList
);
}
}
else
if
(
type
==
typeOfOfflineStore
){
StoreAuth
storeAuth
=
this
.
dataAuthUtils
.
getStoreAuth
(
userId
,
enterpriseId
);
...
...
@@ -332,7 +333,6 @@ public class StoreWidgetController {
page
.
setTotalCount
(
result
.
getTotalCount
());
page
.
setTotalPage
(
result
.
getTotalPage
());
if
(
CollectionUtils
.
isNotEmpty
(
result
.
getResult
())){
List
<
StoreSearchVo
>
storeSearchVoList
=
new
ArrayList
<>();
for
(
StoreDTO
storeDTO
:
result
.
getResult
()){
StoreSearchVo
searchVo
=
new
StoreSearchVo
();
searchVo
.
setId
(
storeDTO
.
getStoreInfoId
()+
""
);
...
...
@@ -343,14 +343,27 @@ public class StoreWidgetController {
searchVo
.
setOwnType
(
storeDTO
.
getOwnType
()
==
1
?
2
:
1
);
storeSearchVoList
.
add
(
searchVo
);
}
page
.
setResult
(
storeSearchVoList
);
}
}
}
else
{
}
else
if
(
typeOfShop
==
type
)
{
//线上店铺
onlineStore
(
page
,
userId
,
enterpriseId
,
search
);
}
else
{
List
<
StoreTagDTO
>
storeTagDTOList
=
this
.
storeTagApiService
.
listByEnterprise
(
enterpriseId
,
search
).
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
storeTagDTOList
)){
for
(
StoreTagDTO
dto
:
storeTagDTOList
){
StoreSearchVo
storeSearchVo
=
new
StoreSearchVo
();
storeSearchVo
.
setId
(
dto
.
getStoreTagId
().
toString
());
storeSearchVo
.
setName
(
dto
.
getStoreTagName
());
storeSearchVo
.
setDesc
(
StoreChannelEnum
.
OFFLINE
.
getMessage
());
storeSearchVo
.
setIdChain
(
"_"
+
StoreChannelEnum
.
OFFLINE
.
getChannel
()
+
"_"
+
dto
.
getStoreTagId
()
+
"_"
);
storeSearchVo
.
setNameChain
(
StoreChannelEnum
.
OFFLINE
.
getMessage
()
+
"/"
+
dto
.
getStoreTagName
());
storeSearchVo
.
setChannel
(
StoreChannelEnum
.
OFFLINE
.
getChannel
());
storeSearchVoList
.
add
(
storeSearchVo
);
}
}
}
page
.
setResult
(
storeSearchVoList
);
return
RestResponse
.
success
(
page
);
}
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/qo/StoreSearchQo.java
View file @
a39f2785
...
...
@@ -28,6 +28,10 @@ public class StoreSearchQo {
*/
private
Integer
hasWgs
=
0
;
private
String
storeBrand
;
private
String
resourceType
;
public
Integer
getAll
()
{
return
all
;
}
...
...
@@ -115,4 +119,20 @@ public class StoreSearchQo {
public
void
setHasWgs
(
Integer
hasWgs
)
{
this
.
hasWgs
=
hasWgs
;
}
public
String
getStoreBrand
()
{
return
storeBrand
;
}
public
void
setStoreBrand
(
String
storeBrand
)
{
this
.
storeBrand
=
storeBrand
;
}
public
String
getResourceType
()
{
return
resourceType
;
}
public
void
setResourceType
(
String
resourceType
)
{
this
.
resourceType
=
resourceType
;
}
}
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