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
1efae27c
Commit
1efae27c
authored
Jul 24, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
观云台小程序
parent
5ca47ba2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
22 deletions
+47
-22
StoreWidgetController.java
...a/com/gic/cloud/web/controller/StoreWidgetController.java
+14
-8
OnLineStoreVo.java
...app/src/main/java/com/gic/cloud/web/vo/OnLineStoreVo.java
+33
-14
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreWidgetController.java
View file @
1efae27c
...
...
@@ -81,8 +81,8 @@ public class StoreWidgetController {
if
(
CollectionUtils
.
isNotEmpty
(
onLineStoreVos
)){
for
(
OnLineStoreVo
onLineStoreVo
:
onLineStoreVos
){
IndexItemVo
indexItemVo
=
new
IndexItemVo
();
indexItemVo
.
setId
(
onLineStoreVo
.
get
OnStore
Id
());
indexItemVo
.
setName
(
onLineStoreVo
.
get
OnStore
Name
());
indexItemVo
.
setId
(
onLineStoreVo
.
getId
());
indexItemVo
.
setName
(
onLineStoreVo
.
getName
());
indexItemVo
.
setType
(
2
);
items
.
add
(
indexItemVo
);
}
...
...
@@ -321,7 +321,8 @@ public class StoreWidgetController {
storeSearchVo
.
setId
(
dto
.
getId
().
toString
());
storeSearchVo
.
setName
(
dto
.
getName
());
storeSearchVo
.
setDesc
(
StoreChannelEnum
.
GICMALL
.
getMessage
());
storeSearchVo
.
setNameChain
(
StoreChannelEnum
.
GICMALL
.
getMessage
());
storeSearchVo
.
setIdChain
(
"_"
+
StoreChannelEnum
.
GICMALL
.
getChannel
()
+
"_"
+
dto
.
getId
()
+
"_"
);
storeSearchVo
.
setNameChain
(
StoreChannelEnum
.
GICMALL
.
getMessage
()
+
"/"
+
dto
.
getName
());
storeSearchVo
.
setChannel
(
StoreChannelEnum
.
GICMALL
.
getChannel
());
list
.
add
(
storeSearchVo
);
}
...
...
@@ -337,7 +338,8 @@ public class StoreWidgetController {
storeSearchVo
.
setId
(
wmStoreDTO
.
getWmStoreId
());
storeSearchVo
.
setName
(
wmStoreDTO
.
getWmMainAccount
());
storeSearchVo
.
setDesc
(
StoreChannelEnum
.
WMMALL
.
getMessage
());
storeSearchVo
.
setNameChain
(
StoreChannelEnum
.
GICMALL
.
getMessage
());
storeSearchVo
.
setIdChain
(
"_"
+
StoreChannelEnum
.
GICMALL
.
getChannel
()
+
"_"
+
wmStoreDTO
.
getWmStoreId
()
+
"_"
);
storeSearchVo
.
setNameChain
(
StoreChannelEnum
.
GICMALL
.
getMessage
()
+
"/"
+
wmStoreDTO
.
getWmMainAccount
());
storeSearchVo
.
setChannel
(
StoreChannelEnum
.
GICMALL
.
getChannel
());
list
.
add
(
storeSearchVo
);
}
...
...
@@ -394,8 +396,10 @@ public class StoreWidgetController {
log
.
info
(
"shopId:{}"
,
dto
.
getId
());
if
(
storeIdList
.
contains
(
dto
.
getId
().
toString
())){
OnLineStoreVo
onLineStoreVo
=
new
OnLineStoreVo
();
onLineStoreVo
.
setOnStoreId
(
dto
.
getId
()+
""
);
onLineStoreVo
.
setOnStoreName
(
dto
.
getName
());
onLineStoreVo
.
setId
(
dto
.
getId
()+
""
);
onLineStoreVo
.
setName
(
dto
.
getName
());
onLineStoreVo
.
setIdChain
(
"_"
+
type
+
"_"
+
dto
.
getId
()+
"_"
);
onLineStoreVo
.
setNameChain
(
StoreChannelEnum
.
GICMALL
.
getMessage
()
+
"/"
+
dto
.
getName
());
list
.
add
(
onLineStoreVo
);
}
}
...
...
@@ -406,8 +410,10 @@ public class StoreWidgetController {
for
(
WmStoreDTO
wmStoreDTO
:
result
){
if
(
storeIdList
.
contains
(
wmStoreDTO
.
getWmMallStoreId
().
toString
())){
OnLineStoreVo
onLineStoreVo
=
new
OnLineStoreVo
();
onLineStoreVo
.
setOnStoreId
(
wmStoreDTO
.
getWmStoreId
()+
""
);
onLineStoreVo
.
setOnStoreName
(
wmStoreDTO
.
getWmPidName
());
onLineStoreVo
.
setId
(
wmStoreDTO
.
getWmStoreId
()+
""
);
onLineStoreVo
.
setName
(
wmStoreDTO
.
getWmPidName
());
onLineStoreVo
.
setIdChain
(
"_"
+
type
+
"_"
+
wmStoreDTO
.
getWmStoreId
()+
"_"
);
onLineStoreVo
.
setNameChain
(
StoreChannelEnum
.
WMMALL
.
getMessage
()
+
"/"
+
wmStoreDTO
.
getWmPidName
());
list
.
add
(
onLineStoreVo
);
}
}
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/vo/OnLineStoreVo.java
View file @
1efae27c
package
com
.
gic
.
cloud
.
web
.
vo
;
public
class
OnLineStoreVo
{
private
String
onStoreId
;
private
String
onStoreName
;
private
String
id
;
private
String
name
;
private
String
idChain
;
private
String
nameChain
;
private
Integer
hasChildren
=
0
;
public
String
getOnStoreId
()
{
return
onStoreId
;
public
Integer
getHasChildren
()
{
return
hasChildren
;
}
public
void
set
OnStoreId
(
String
onStoreId
)
{
this
.
onStoreId
=
onStoreId
;
public
void
set
HasChildren
(
Integer
hasChildren
)
{
this
.
hasChildren
=
hasChildren
;
}
public
String
get
OnStoreName
()
{
return
onStoreName
;
public
String
get
Id
()
{
return
id
;
}
public
void
set
OnStoreName
(
String
onStoreName
)
{
this
.
onStoreName
=
onStoreName
;
public
void
set
Id
(
String
id
)
{
this
.
id
=
id
;
}
public
Integer
getHasChildren
()
{
return
hasChildren
;
public
String
getName
()
{
return
name
;
}
public
void
setHasChildren
(
Integer
hasChildren
)
{
this
.
hasChildren
=
hasChildren
;
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getIdChain
()
{
return
idChain
;
}
public
void
setIdChain
(
String
idChain
)
{
this
.
idChain
=
idChain
;
}
public
String
getNameChain
()
{
return
nameChain
;
}
public
void
setNameChain
(
String
nameChain
)
{
this
.
nameChain
=
nameChain
;
}
}
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