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
63846dbd
Commit
63846dbd
authored
Sep 18, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店控件修复
parent
49024381
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
GoDownComponent.java
...in/java/com/gic/cloud/web/controller/GoDownComponent.java
+3
-3
StoreWidgetController.java
...a/com/gic/cloud/web/controller/StoreWidgetController.java
+7
-7
BigDecimalConvertUtils.java
.../java/com/gic/cloud/web/utils/BigDecimalConvertUtils.java
+1
-1
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/GoDownComponent.java
View file @
63846dbd
...
@@ -232,12 +232,12 @@ public class GoDownComponent {
...
@@ -232,12 +232,12 @@ public class GoDownComponent {
gicMall
(
page
,
channel
,
enterpriseId
,
level
);
gicMall
(
page
,
channel
,
enterpriseId
,
level
);
}
}
if
(
StoreChannelEnum
.
WMMALL
.
getChannel
().
equals
(
channel
)){
if
(
StoreChannelEnum
.
WMMALL
.
getChannel
().
equals
(
channel
)){
List
<
WmStoreDTO
>
result1
=
wmStoreApiService
.
listWmStore
(
enterpriseId
,
null
).
getResult
();
List
<
WmStoreDTO
>
wmStoreList
=
wmStoreApiService
.
listWmStore
(
enterpriseId
,
null
).
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
result1
)){
if
(
CollectionUtils
.
isNotEmpty
(
wmStoreList
)){
page
.
getResult
().
stream
().
forEach
(
b
->
{
page
.
getResult
().
stream
().
forEach
(
b
->
{
BaseDTO
baseSalesDTO
=
(
BaseDTO
)
b
;
BaseDTO
baseSalesDTO
=
(
BaseDTO
)
b
;
baseSalesDTO
.
setLevel
(
level
-
1
);
baseSalesDTO
.
setLevel
(
level
-
1
);
for
(
WmStoreDTO
dto
:
result1
){
for
(
WmStoreDTO
dto
:
wmStoreList
){
if
(
baseSalesDTO
instanceof
BaseSalesDTO
){
if
(
baseSalesDTO
instanceof
BaseSalesDTO
){
if
(
baseSalesDTO
.
getId
().
equals
(
dto
.
getWmMallStoreId
()+
""
)){
if
(
baseSalesDTO
.
getId
().
equals
(
dto
.
getWmMallStoreId
()+
""
)){
baseSalesDTO
.
setName
(
dto
.
getWmMainAccount
());
baseSalesDTO
.
setName
(
dto
.
getWmMainAccount
());
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreWidgetController.java
View file @
63846dbd
...
@@ -266,10 +266,10 @@ public class StoreWidgetController {
...
@@ -266,10 +266,10 @@ public class StoreWidgetController {
storeTypeVo
.
setId
(
"1"
);
storeTypeVo
.
setId
(
"1"
);
storeTypeVo
.
setName
(
"启用"
);
storeTypeVo
.
setName
(
"启用"
);
list
.
add
(
storeTypeVo
);
list
.
add
(
storeTypeVo
);
StoreTypeVo
storeTypeVo
1
=
new
StoreTypeVo
();
StoreTypeVo
storeTypeVo
Not
=
new
StoreTypeVo
();
storeTypeVo
1
.
setId
(
"2"
);
storeTypeVo
Not
.
setId
(
"2"
);
storeTypeVo
1
.
setName
(
"不启用"
);
storeTypeVo
Not
.
setName
(
"不启用"
);
list
.
add
(
storeTypeVo
1
);
list
.
add
(
storeTypeVo
Not
);
}
}
return
RestResponse
.
success
(
list
);
return
RestResponse
.
success
(
list
);
}
}
...
@@ -373,9 +373,9 @@ public class StoreWidgetController {
...
@@ -373,9 +373,9 @@ public class StoreWidgetController {
}
}
}
}
if
(
StoreChannelEnum
.
WMMALL
.
getChannel
().
equals
(
onLineStore
.
getChannel
())){
if
(
StoreChannelEnum
.
WMMALL
.
getChannel
().
equals
(
onLineStore
.
getChannel
())){
List
<
WmStoreDTO
>
result1
=
wmStoreApiService
.
listWmStore
(
enterpriseId
,
search
).
getResult
();
List
<
WmStoreDTO
>
wmStoreList
=
wmStoreApiService
.
listWmStore
(
enterpriseId
,
search
).
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
result1
)){
if
(
CollectionUtils
.
isNotEmpty
(
wmStoreList
)){
for
(
WmStoreDTO
wmStoreDTO
:
result1
){
for
(
WmStoreDTO
wmStoreDTO
:
wmStoreList
){
if
(
onLineStore
.
getStoreIdList
().
contains
(
wmStoreDTO
.
getWmStoreId
())){
if
(
onLineStore
.
getStoreIdList
().
contains
(
wmStoreDTO
.
getWmStoreId
())){
StoreSearchVo
storeSearchVo
=
new
StoreSearchVo
();
StoreSearchVo
storeSearchVo
=
new
StoreSearchVo
();
storeSearchVo
.
setId
(
wmStoreDTO
.
getWmStoreId
());
storeSearchVo
.
setId
(
wmStoreDTO
.
getWmStoreId
());
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/utils/BigDecimalConvertUtils.java
View file @
63846dbd
...
@@ -19,7 +19,7 @@ import java.math.BigDecimal;
...
@@ -19,7 +19,7 @@ import java.math.BigDecimal;
@Component
@Component
public
class
BigDecimalConvertUtils
{
public
class
BigDecimalConvertUtils
{
@Bean
@Bean
public
MappingJackson2HttpMessageConverter
jackson2HttpMessageConverter
1
(){
public
MappingJackson2HttpMessageConverter
jackson2HttpMessageConverter
BigDecimal
(){
MappingJackson2HttpMessageConverter
jackson2HttpMessageConverter
=
new
MappingJackson2HttpMessageConverter
();
MappingJackson2HttpMessageConverter
jackson2HttpMessageConverter
=
new
MappingJackson2HttpMessageConverter
();
ObjectMapper
objectMapper
=
new
ObjectMapper
();
ObjectMapper
objectMapper
=
new
ObjectMapper
();
...
...
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