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
6ddbf099
Commit
6ddbf099
authored
Feb 27, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/base_platform_enterprise/gic-store
into developer
parents
d7e17186
e1b8722c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+10
-3
StoreOpenApiServiceImpl.java
...gic/store/service/outer/impl/StoreOpenApiServiceImpl.java
+1
-1
No files found.
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
6ddbf099
...
...
@@ -162,8 +162,13 @@ public class ClerkApiServiceImpl implements ClerkApiService {
@SuppressWarnings
(
"unchecked"
)
public
ServiceResponse
<
Page
<
ClerkStoreListDTO
>>
listClerk
(
Integer
enterpriseId
,
ClerkSearchDTO
clerkSearchDTO
,
Integer
pageNum
,
Integer
pageSize
)
{
if
(
clerkSearchDTO
.
getStoreGroupId
()
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
MISS_PARAMETER
.
getCode
(),
ErrorCode
.
MISS_PARAMETER
.
getMsg
());
boolean
hasStoreIds
=
StringUtils
.
isNotBlank
(
clerkSearchDTO
.
getStoreIds
());
//如果有门店数据条件,则不判断门店分组数据,因为分店分组数据也是为了获取门店
if
(!
hasStoreIds
)
{
if
(
clerkSearchDTO
.
getStoreGroupId
()
==
null
)
{
return
ServiceResponse
.
failure
(
ErrorCode
.
MISS_PARAMETER
.
getCode
(),
ErrorCode
.
MISS_PARAMETER
.
getMsg
());
}
}
// 分组的id
List
<
TabStoreGroup
>
groupList
=
storeGroupService
.
listStoreGroupAndChildren
(
clerkSearchDTO
.
getStoreGroupId
());
...
...
@@ -181,7 +186,9 @@ public class ClerkApiServiceImpl implements ClerkApiService {
storeIdByClerkSearch
=
""
;
}
clerkSearchDTO
.
setEnterpriseId
(
enterpriseId
);
clerkSearchDTO
.
setStoreIds
(
storeIdByClerkSearch
);
if
(!
hasStoreIds
)
{
clerkSearchDTO
.
setStoreIds
(
storeIdByClerkSearch
);
}
ServiceResponse
<
Page
<
StoreDTO
>>
serviceResponse
=
listStoreIds
(
clerkSearchDTO
,
pageNum
,
pageSize
);
if
(!
serviceResponse
.
isSuccess
())
{
return
ServiceResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreOpenApiServiceImpl.java
View file @
6ddbf099
...
...
@@ -489,7 +489,7 @@ public class StoreOpenApiServiceImpl implements StoreOpenApiService {
}
StringBuilder
storeIds
=
new
StringBuilder
();
if
(
StringUtils
.
isBlank
(
storeCode
))
{
//查询域下所有的门店
//查询域下所有的门店
:q
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setRegionId
(
regionId
);
...
...
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