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
3dbec5fd
Commit
3dbec5fd
authored
Apr 01, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店控件修复
parent
b58894bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
StoreWidgetController.java
...a/com/gic/cloud/web/controller/StoreWidgetController.java
+6
-0
StoreWidgetIndexVo.java
...rc/main/java/com/gic/cloud/web/vo/StoreWidgetIndexVo.java
+12
-0
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreWidgetController.java
View file @
3dbec5fd
...
@@ -18,6 +18,8 @@ import com.gic.cloud.web.constant.StoreChannelEnum;
...
@@ -18,6 +18,8 @@ import com.gic.cloud.web.constant.StoreChannelEnum;
import
com.gic.cloud.web.vo.*
;
import
com.gic.cloud.web.vo.*
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.dto.WmStoreDTO
;
import
com.gic.enterprise.dto.WmStoreDTO
;
import
com.gic.enterprise.dto.union.UnionEnterpriseAuthDTO
;
import
com.gic.enterprise.service.UnionEnterpriseAuthApiService
;
import
com.gic.enterprise.service.WmStoreApiService
;
import
com.gic.enterprise.service.WmStoreApiService
;
import
com.gic.mall.share.api.dto.shop.ShopDTO
;
import
com.gic.mall.share.api.dto.shop.ShopDTO
;
import
com.gic.mall.share.api.enums.ShopTypeEnum
;
import
com.gic.mall.share.api.enums.ShopTypeEnum
;
...
@@ -70,6 +72,8 @@ public class StoreWidgetController {
...
@@ -70,6 +72,8 @@ public class StoreWidgetController {
private
MenuApiService
menuApiService
;
private
MenuApiService
menuApiService
;
@Autowired
@Autowired
private
StoreBrandApiService
storeBrandApiService
;
private
StoreBrandApiService
storeBrandApiService
;
@Autowired
private
UnionEnterpriseAuthApiService
unionEnterpriseAuthApiService
;
@RequestMapping
(
"store-widget-index"
)
@RequestMapping
(
"store-widget-index"
)
public
RestResponse
storeWidgetIndex
(
Integer
userId
,
Integer
enterpriseId
){
public
RestResponse
storeWidgetIndex
(
Integer
userId
,
Integer
enterpriseId
){
...
@@ -122,6 +126,8 @@ public class StoreWidgetController {
...
@@ -122,6 +126,8 @@ public class StoreWidgetController {
}
}
}
}
}
}
List
<
UnionEnterpriseAuthDTO
>
ownEnterpriseList
=
this
.
unionEnterpriseAuthApiService
.
listOwnEnterpriseAuth
(
enterpriseId
).
getResult
();
vo
.
setResourceType
(
CollectionUtils
.
isNotEmpty
(
ownEnterpriseList
)
?
1
:
0
);
return
RestResponse
.
success
(
vo
);
return
RestResponse
.
success
(
vo
);
}
}
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/vo/StoreWidgetIndexVo.java
View file @
3dbec5fd
...
@@ -15,6 +15,10 @@ public class StoreWidgetIndexVo {
...
@@ -15,6 +15,10 @@ public class StoreWidgetIndexVo {
private
Integer
attentionCount
=
0
;
private
Integer
attentionCount
=
0
;
private
Integer
singleRegion
=
0
;
private
Integer
singleRegion
=
0
;
private
Integer
hasWgs
=
0
;
private
Integer
hasWgs
=
0
;
/**
* 是否显示资源类型 1是 0否
*/
private
Integer
resourceType
=
0
;
public
Integer
getType
()
{
public
Integer
getType
()
{
return
type
;
return
type
;
...
@@ -55,4 +59,12 @@ public class StoreWidgetIndexVo {
...
@@ -55,4 +59,12 @@ public class StoreWidgetIndexVo {
public
void
setHasWgs
(
Integer
hasWgs
)
{
public
void
setHasWgs
(
Integer
hasWgs
)
{
this
.
hasWgs
=
hasWgs
;
this
.
hasWgs
=
hasWgs
;
}
}
public
Integer
getResourceType
()
{
return
resourceType
;
}
public
void
setResourceType
(
Integer
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