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
208e11b5
Commit
208e11b5
authored
Jul 16, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
观云台小程序
parent
defd7618
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
LoginController.java
...in/java/com/gic/cloud/web/controller/LoginController.java
+0
-0
StoreWidgetController.java
...a/com/gic/cloud/web/controller/StoreWidgetController.java
+8
-3
StoreGroupItemsVo.java
...src/main/java/com/gic/cloud/web/vo/StoreGroupItemsVo.java
+9
-0
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/LoginController.java
View file @
208e11b5
This diff is collapsed.
Click to expand it.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreWidgetController.java
View file @
208e11b5
...
@@ -111,17 +111,20 @@ public class StoreWidgetController {
...
@@ -111,17 +111,20 @@ public class StoreWidgetController {
storeGroupIdList
=
new
ArrayList
<>(
storeGroupId
);
storeGroupIdList
=
new
ArrayList
<>(
storeGroupId
);
}
}
Page
<
StoreGroupDTO
>
page
=
this
.
storeGroupApiService
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
parentId
,
null
,
pageSize
,
pageNum
).
getResult
();
Page
<
StoreGroupDTO
>
page
=
this
.
storeGroupApiService
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
parentId
,
null
,
pageSize
,
pageNum
).
getResult
();
StoreGroupVo
vo
=
new
StoreGroupVo
(
);
Page
<
StoreGroupItemsVo
>
groupVoPage
=
new
Page
<>(
pageNum
,
pageSize
);
List
<
StoreGroupItemsVo
>
items
=
new
ArrayList
<>();
List
<
StoreGroupItemsVo
>
items
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getResult
())){
if
(
CollectionUtils
.
isNotEmpty
(
page
.
getResult
())){
for
(
StoreGroupDTO
storeGroupDTO
:
page
.
getResult
()){
for
(
StoreGroupDTO
storeGroupDTO
:
page
.
getResult
()){
StoreGroupItemsVo
itemsVo
=
new
StoreGroupItemsVo
();
StoreGroupItemsVo
itemsVo
=
new
StoreGroupItemsVo
();
itemsVo
.
setId
(
storeGroupDTO
.
getStoreGroupId
());
itemsVo
.
setId
(
storeGroupDTO
.
getStoreGroupId
());
itemsVo
.
setName
(
storeGroupDTO
.
getStoreGroupName
());
itemsVo
.
setName
(
storeGroupDTO
.
getStoreGroupName
());
itemsVo
.
setChain
(
storeGroupDTO
.
getStoreGroupChain
());
List
<
StoreGroupDTO
>
result
=
this
.
storeGroupApiService
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
parentId
,
null
,
pageSize
,
pageNum
).
getResult
().
getResult
();
List
<
StoreGroupDTO
>
result
=
this
.
storeGroupApiService
.
pageStoreGroupByIds
(
storeGroupIdList
,
enterpriseId
,
parentId
,
null
,
pageSize
,
pageNum
).
getResult
().
getResult
();
itemsVo
.
setHasChildren
(
CollectionUtils
.
isEmpty
(
result
)
?
0
:
1
);
itemsVo
.
setHasChildren
(
CollectionUtils
.
isEmpty
(
result
)
?
0
:
1
);
items
.
add
(
itemsVo
);
items
.
add
(
itemsVo
);
}
}
groupVoPage
.
setTotalCount
(
page
.
getTotalCount
());
groupVoPage
.
setTotalPage
(
page
.
getTotalPage
());
}
else
{
}
else
{
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
...
@@ -136,10 +139,12 @@ public class StoreWidgetController {
...
@@ -136,10 +139,12 @@ public class StoreWidgetController {
itemsVo
.
setIsStore
(
1
);
itemsVo
.
setIsStore
(
1
);
items
.
add
(
itemsVo
);
items
.
add
(
itemsVo
);
}
}
groupVoPage
.
setTotalCount
(
response
.
getResult
().
getTotalCount
());
groupVoPage
.
setTotalPage
(
response
.
getResult
().
getTotalPage
());
}
}
}
}
vo
.
setItems
(
items
);
groupVoPage
.
setResult
(
items
);
return
RestResponse
.
success
(
vo
);
return
RestResponse
.
success
(
groupVoPage
);
}
}
@RequestMapping
(
"store-type"
)
@RequestMapping
(
"store-type"
)
...
...
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/vo/StoreGroupItemsVo.java
View file @
208e11b5
...
@@ -3,6 +3,7 @@ package com.gic.cloud.web.vo;
...
@@ -3,6 +3,7 @@ package com.gic.cloud.web.vo;
public
class
StoreGroupItemsVo
{
public
class
StoreGroupItemsVo
{
private
Integer
id
;
private
Integer
id
;
private
String
name
;
private
String
name
;
private
String
chain
;
private
Integer
isStore
=
0
;
private
Integer
isStore
=
0
;
private
Integer
hasChildren
=
0
;
private
Integer
hasChildren
=
0
;
...
@@ -37,4 +38,12 @@ public class StoreGroupItemsVo {
...
@@ -37,4 +38,12 @@ public class StoreGroupItemsVo {
public
void
setHasChildren
(
Integer
hasChildren
)
{
public
void
setHasChildren
(
Integer
hasChildren
)
{
this
.
hasChildren
=
hasChildren
;
this
.
hasChildren
=
hasChildren
;
}
}
public
String
getChain
()
{
return
chain
;
}
public
void
setChain
(
String
chain
)
{
this
.
chain
=
chain
;
}
}
}
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