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
1
Merge Requests
1
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
776391e6
Commit
776391e6
authored
Apr 07, 2020
by
huangZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
14fd6473
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
1 deletions
+15
-1
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+6
-0
InfoController.java
.../com/gic/haoban/manage/web/controller/InfoController.java
+1
-0
InfoVo.java
...wx/src/main/java/com/gic/haoban/manage/web/vo/InfoVo.java
+8
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
776391e6
...
...
@@ -106,14 +106,17 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
//1、查该staff的门店id
List
<
TabHaobanStaffDepartmentRelated
>
relatedIds
=
staffDepartmentRelatedService
.
listByWxUserId
(
wxUserId
);
if
(
CollectionUtil
.
isEmpty
(
relatedIds
)){
log
.
info
(
"staff关联部门不存在1"
);
return
null
;
}
List
<
String
>
departmentIds
=
relatedIds
.
stream
().
map
(
s
->
s
.
getDepartmentId
()).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isEmpty
(
departmentIds
)){
log
.
info
(
"staff部门不存在1"
);
return
null
;
}
List
<
DepartmentDTO
>
stores
=
departmentApiService
.
listByDepartmentIds
(
departmentIds
,
1
);
if
(
CollectionUtil
.
isEmpty
(
stores
)){
log
.
info
(
"staff关联门店不存在1"
);
return
null
;
}
List
<
String
>
storeIds
=
stores
.
stream
().
map
(
s
->
s
.
getRelatedId
()).
collect
(
Collectors
.
toList
());
...
...
@@ -135,14 +138,17 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
dynamicSearchDTO
.
setRecordNumber
(
1
);
ESResponseQuerySingle
responseQuery
=
eSDataDynamicOperationApiService
.
queryDataSingle
(
dynamicSearchDTO
);
if
(
null
==
responseQuery
){
log
.
info
(
"会员不存在1"
);
return
null
;
}
JSONObject
res
=
responseQuery
.
getRes
();
if
(
res
==
null
){
log
.
info
(
"会员不存在2"
);
return
null
;
}
String
storeId
=
res
.
get
(
"storeId"
)
==
null
?
""
:
res
.
get
(
"storeId"
).
toString
();
if
(
StringUtils
.
isEmpty
(
storeId
)){
log
.
info
(
"会员门店不存在"
);
return
null
;
}
String
[]
memberStoreIds
=
storeId
.
split
(
" "
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/InfoController.java
View file @
776391e6
...
...
@@ -102,6 +102,7 @@ public class InfoController extends WebBaseController{
infoVo
.
setStaffName
(
loginStaff
.
getStaffName
());
infoVo
.
setPhoneNumber
(
loginStaff
.
getPhoneNumber
());
infoVo
.
setNationcode
(
loginStaff
.
getNationCode
());
infoVo
.
setWxUserId
(
loginStaff
.
getWxUserId
());
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
infoVo
);
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/vo/InfoVo.java
View file @
776391e6
...
...
@@ -15,7 +15,14 @@ public class InfoVo implements Serializable {
private
String
staffName
;
private
String
phoneNumber
;
private
String
nationcode
;
private
String
wxUserId
;
public
String
getWxUserId
()
{
return
wxUserId
;
}
public
void
setWxUserId
(
String
wxUserId
)
{
this
.
wxUserId
=
wxUserId
;
}
public
String
getStaffId
()
{
return
staffId
;
}
...
...
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