Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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-webapp-plug
Commits
2fb7955b
Commit
2fb7955b
authored
Oct 08, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店修改
parent
65456c42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
StoreController.java
...ain/java/com/gic/plug/web/controller/StoreController.java
+3
-2
StoreGroupController.java
...ava/com/gic/plug/web/controller/StoreGroupController.java
+2
-1
No files found.
src/main/java/com/gic/plug/web/controller/StoreController.java
View file @
2fb7955b
...
...
@@ -3,6 +3,7 @@ package com.gic.plug.web.controller;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.plug.web.vo.StoreRegionVO
;
import
com.gic.plug.web.vo.StoreVO
;
import
com.gic.store.constant.StoreESFieldsEnum
;
...
...
@@ -32,7 +33,7 @@ public class StoreController {
@RequestMapping
(
"/list-store-region"
)
public
RestResponse
listStoreRegion
(
String
search
)
{
Integer
enterpriseId
=
1111
;
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
;
ServiceResponse
<
List
<
StoreRegionDTO
>>
serviceResponse
=
storeRegionApiService
.
listStoreRegion
(
enterpriseId
,
search
);
if
(
serviceResponse
.
isSuccess
())
{
List
<
StoreRegionDTO
>
result
=
serviceResponse
.
getResult
();
...
...
@@ -44,7 +45,7 @@ public class StoreController {
@RequestMapping
(
"/list-part-store"
)
public
RestResponse
listPartStore
(
Integer
storeGroupId
,
String
search
)
{
Integer
enterpriseId
=
1111
;
Integer
enterpriseId
=
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
;
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setStoreGroupId
(
storeGroupId
);
...
...
src/main/java/com/gic/plug/web/controller/StoreGroupController.java
View file @
2fb7955b
package
com
.
gic
.
plug
.
web
.
controller
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.utils.UserDetailUtils
;
import
com.gic.store.constant.StoreGroupConstant
;
import
com.gic.store.dto.StoreGroupDTO
;
import
com.gic.store.service.StoreGroupApiService
;
...
...
@@ -28,7 +29,7 @@ public class StoreGroupController {
@RequestMapping
(
"/list"
)
public
RestResponse
listStoreGroup
()
{
StoreGroupDTO
dto
=
new
StoreGroupDTO
();
dto
.
setEnterpriseId
(
StoreGroupConstant
.
TEST_ENTERPRISE_ID
);
dto
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
()
);
List
<
StoreGroupDTO
>
list
=
storeGroupApiService
.
listStoreGroup
(
dto
).
getResult
();
return
RestResponse
.
success
(
ChangeListToTree
.
changeListToTreeNotIncludeAllStore
(
StoreGroupConstant
.
ALL_STORE_LEVEL
,
list
));
}
...
...
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