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
be53a0e7
Commit
be53a0e7
authored
Jan 07, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店导出修改
parent
4b271bd0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
StoreApiService.java
.../src/main/java/com/gic/store/service/StoreApiService.java
+9
-0
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+15
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/StoreApiService.java
View file @
be53a0e7
...
...
@@ -57,6 +57,15 @@ public interface StoreApiService {
*/
ServiceResponse
<
StoreDTO
>
getStoreById
(
Integer
enterpriseId
,
Integer
storeId
);
/** @Description: 通过企业id和storeInfoId查询门店
* @author taogs
* @Date 11:02 2020/1/7
* @Param
* @return
*/
ServiceResponse
<
StoreDTO
>
getStoreByStoreInfoId
(
Integer
enterpriseId
,
Integer
storeInfoId
);
/**
* @Title: validateFieldExceptRepeat
* @Description: 校验除 是否重复 外的所有条件
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
be53a0e7
...
...
@@ -600,6 +600,21 @@ public class StoreApiServiceImpl implements StoreApiService {
return
ServiceResponse
.
success
(
storeDTO
);
}
@Override
public
ServiceResponse
<
StoreDTO
>
getStoreByStoreInfoId
(
Integer
enterpriseId
,
Integer
storeInfoId
)
{
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setStoreInfoIds
(
storeInfoId
+
""
);
ServiceResponse
<
Page
<
StoreDTO
>>
response
=
this
.
listStore
(
storeSearchDTO
,
1
,
1
);
if
(
response
.
isSuccess
()
&&
response
.
getResult
()
!=
null
){
List
<
StoreDTO
>
result
=
response
.
getResult
().
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
result
)){
return
ServiceResponse
.
success
(
result
.
get
(
0
));
}
}
return
ServiceResponse
.
success
();
}
private
StoreDTO
getStoreDTO
(
Integer
enterpriseId
,
Integer
storeId
)
{
StoreDTO
store
=
storeService
.
getById
(
storeId
);
if
(
store
==
null
)
{
...
...
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