Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
haoban3.0
haoban-manage3.0
Commits
4f87a630
Commit
4f87a630
authored
Feb 20, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
58d6360e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
StoreController.java
...com/gic/haoban/manage/web/controller/StoreController.java
+7
-2
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/StoreController.java
View file @
4f87a630
...
...
@@ -18,6 +18,7 @@ import com.gic.clerk.api.dto.ClerkDTO;
import
com.gic.clerk.api.service.ClerkService
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StorePhotoDTO
;
import
com.gic.enterprise.api.service.StoreService
;
import
com.gic.haoban.common.utils.HaobanResponse
;
import
com.gic.haoban.data.api.dto.HaobanDataDTO
;
...
...
@@ -88,14 +89,15 @@ public class StoreController extends WebBaseController{
}
//3、判断是否是店长
for
(
StoreVO
VO
:
resultList
){
//查gic门店
StoreDTO
storeDTO
=
storeService
.
getStore
(
VO
.
getStoreId
());
List
<
StorePhotoDTO
>
imgList
=
storeService
.
getStoreImages
(
VO
.
getStoreId
());
//已经绑定的门店
if
(
VO
.
getBindFlag
()==
1
){
String
clerkCode
=
VO
.
getClerkCode
();
if
(
StringUtils
.
isEmpty
(
clerkCode
)){
VO
.
setClerkType
(
0
);
}
else
{
//查gic门店
StoreDTO
storeDTO
=
storeService
.
getStore
(
VO
.
getStoreId
());
if
(
storeDTO
!=
null
){
//查gic门店店长
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
storeDTO
.
getClerkId
());
...
...
@@ -108,6 +110,9 @@ public class StoreController extends WebBaseController{
}
}
}
if
(
CollectionUtil
.
isNotEmpty
(
imgList
)){
VO
.
setStoreImg
(
imgList
.
get
(
0
).
getImageUrl
());;
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
resultList
);
}
...
...
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