Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
4848377c
Commit
4848377c
authored
Jan 15, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
积分成本主体选择门店接口
parent
fd5a09dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+29
-0
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
4848377c
...
...
@@ -367,6 +367,35 @@ public class StoreController extends DownloadUtils {
return
RestResponse
.
success
();
}
@RequestMapping
(
"subject-cost-store-search"
)
public
RestResponse
subjectCostStoreSearch
(
String
search
){
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
storeSearchDTO
.
setStatus
(
StoreStatusEnum
.
ONLINE
.
getCode
());
storeSearchDTO
.
setSearch
(
search
);
ServiceResponse
<
Page
<
StoreDTO
>>
response
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
1000
);
if
(
response
.
isSuccess
()
&&
response
.
getResult
()
!=
null
){
List
<
StoreDTO
>
result
=
response
.
getResult
().
getResult
();
if
(
CollectionUtils
.
isEmpty
(
result
)){
result
=
new
ArrayList
<
StoreDTO
>();
}
if
(
"总部"
.
equals
(
search
)){
StoreDTO
storeDTO
=
new
StoreDTO
();
storeDTO
.
setStoreName
(
"总部"
);
storeDTO
.
setStoreId
(
8888
);
result
.
add
(
storeDTO
);
}
if
(
"无归属"
.
equals
(
search
)){
StoreDTO
storeDTO
=
new
StoreDTO
();
storeDTO
.
setStoreName
(
"无归属"
);
storeDTO
.
setStoreId
(
9999
);
result
.
add
(
storeDTO
);
}
return
RestResponse
.
success
(
result
);
}
return
RestResponse
.
success
();
}
private
List
<
StoreListSourceVO
>
getStoreAllListSource
(
Integer
enterpriseId
)
{
List
<
StoreListSourceVO
>
list
=
new
ArrayList
<>();
ServiceResponse
<
List
<
StoreDictDTO
>>
serviceResponse
=
this
.
storeDictApiService
.
listStoreField
(
enterpriseId
);
...
...
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