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
6883bdac
Commit
6883bdac
authored
Sep 18, 2019
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店修改
parent
9fbc27b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
StoreController.java
...ain/java/com/gic/plug/web/controller/StoreController.java
+10
-3
No files found.
src/main/java/com/gic/plug/web/controller/StoreController.java
View file @
6883bdac
...
...
@@ -5,8 +5,10 @@ import com.gic.commons.util.EntityUtil;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.plug.web.vo.StoreRegionVO
;
import
com.gic.plug.web.vo.StoreVO
;
import
com.gic.store.constant.StoreESFieldsEnum
;
import
com.gic.store.dto.StoreInfoDTO
;
import
com.gic.store.dto.StoreRegionDTO
;
import
com.gic.store.dto.StoreSearchDTO
;
import
com.gic.store.service.StoreApiService
;
import
com.gic.store.service.StoreRegionApiService
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -43,10 +45,15 @@ public class StoreController {
@RequestMapping
(
"/list-part-store"
)
public
RestResponse
listPartStore
(
Integer
storeGroupId
,
String
search
)
{
Integer
enterpriseId
=
1111
;
ServiceResponse
<
List
<
StoreInfoDTO
>>
serviceResponse
=
storeApiService
.
listPartStore
(
enterpriseId
,
storeGroupId
,
search
);
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setStoreGroupId
(
storeGroupId
);
storeSearchDTO
.
setSearch
(
search
);
String
returnFields
=
StoreESFieldsEnum
.
STOREID
.
getField
()+
","
+
StoreESFieldsEnum
.
STORECODE
.
getField
()+
","
+
StoreESFieldsEnum
.
STORENAME
.
getField
();
ServiceResponse
serviceResponse
=
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
Integer
.
MAX_VALUE
,
returnFields
);
if
(
serviceResponse
.
isSuccess
())
{
List
<
StoreInfoDTO
>
result
=
serviceResponse
.
getResult
();
return
RestResponse
.
success
(
EntityUtil
.
changeEntityListByOrika
(
StoreVO
.
class
,
result
));
return
RestResponse
.
success
(
serviceResponse
.
getResult
());
}
else
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
...
...
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