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
5b9fd48b
Commit
5b9fd48b
authored
Jul 25, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接关联手机号
parent
36174952
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
KeyDataLinkBO.java
...m/gic/haoban/manage/service/pojo/bo/hm/KeyDataLinkBO.java
+9
-0
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+12
-8
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/pojo/bo/hm/KeyDataLinkBO.java
View file @
5b9fd48b
...
...
@@ -11,6 +11,15 @@ public class KeyDataLinkBO implements Serializable{
private
String
unionid
;
private
Long
hmId
;
private
Long
linkId
;
private
String
phone
;
public
String
getPhone
()
{
return
phone
;
}
public
void
setPhone
(
String
phone
)
{
this
.
phone
=
phone
;
}
public
String
getUnionid
()
{
return
unionid
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
5b9fd48b
...
...
@@ -231,6 +231,15 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
remarkMap
.
put
(
"sm"
,
"会员选门店活码"
);
}
}
String
mobile
=
null
;
if
(
StringUtils
.
isNotEmpty
(
mixPhone
))
{
mobile
=
this
.
keyDataService
.
getMobile
(
mixPhone
,
linkShortCode
);
log
.
info
(
"查询手机号,mobile={},mixPhone={}"
,
mobile
,
mixPhone
);
String
mobileMemberId
=
this
.
memberService
.
getMemberIdByPhoneNumber
(
mobile
,
enterpriseId
);
if
(
StringUtils
.
isNotBlank
(
mobileMemberId
))
{
memberId
=
mobileMemberId
;
}
}
// 会员门店
if
(
null
==
hm
)
{
HmLinkStoreSettingDTO
fwStore
=
null
;
...
...
@@ -247,14 +256,6 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if
(
null
==
xgStore
||
xgStore
.
getOpen
()
==
0
)
{
xgStore
=
null
;
}
if
(
StringUtils
.
isNotEmpty
(
mixPhone
))
{
String
mobile
=
this
.
keyDataService
.
getMobile
(
mixPhone
,
linkShortCode
);
log
.
info
(
"小程序获取活码mobile={},mixPhone={}"
,
mobile
,
mixPhone
);
String
mobileMemberId
=
this
.
memberService
.
getMemberIdByPhoneNumber
(
mobile
,
enterpriseId
);
if
(
StringUtils
.
isNotBlank
(
mobileMemberId
))
{
memberId
=
mobileMemberId
;
}
}
log
.
info
(
"小程序获取活码memberId={}"
,
memberId
);
if
(
StringUtils
.
isNotBlank
(
memberId
))
{
MemberDataDTO
member
=
this
.
getMemberClerk
(
enterpriseId
,
memberId
);
...
...
@@ -375,6 +376,9 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
bo
.
setUnionid
(
unionid
);
bo
.
setLinkId
(
linkId
);
bo
.
setHmId
(
hm
.
getHmId
());
if
(
StringUtils
.
isNotBlank
(
mixPhone
)
&&
StringUtils
.
isNotBlank
(
mobile
))
{
bo
.
setPhone
(
mobile
);
}
String
dthmKey
=
this
.
keyDataService
.
saveDataForLink
(
enterpriseId
,
bo
);
remarkMap
.
put
(
"dthmKey"
,
dthmKey
);
if
(
null
!=
dthmKey
)
{
...
...
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