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
484e4bb4
Commit
484e4bb4
authored
Jul 22, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
e22204a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+8
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
484e4bb4
...
...
@@ -163,7 +163,7 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
Map
<
String
,
String
>
remarkMap
=
new
HashMap
<>();
if
(
null
==
link
)
{
log
.
error
(
"链接记录不存,linkShortCode={}"
,
linkShortCode
);
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_OTHER
.
getCode
(),
"
链接记录不存
"
);
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_OTHER
.
getCode
(),
"
无效的链接
"
);
}
// 查询页面
retDTO
.
setPageId
(
link
.
getPageId
());
...
...
@@ -179,13 +179,15 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
if
(
wxEnterpriseDTO
==
null
)
{
log
.
error
(
"未查询到微信企业,id={}"
,
wxEnterpriseId
);
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_OTHER
.
getCode
(),
"未查
询
到微信企业"
);
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_OTHER
.
getCode
(),
"未查到微信企业"
);
}
// 判断导购是否有活码,如果没有返回错误
if
(
StringUtils
.
isNotBlank
(
inClerkId
))
{
hm
=
this
.
getHmFromClerk
(
inClerkId
,
wxEnterpriseId
);
if
(
null
==
hm
)
{
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_OTHER
.
getCode
(),
"导购活码不存在"
);
remarkMap
.
put
(
"reason"
,
"无任何导购活码"
);
retDTO
.
setRemarkMap
(
remarkMap
);
return
ServiceResponse
.
success
(
retDTO
)
;
}
}
// 直接返回门店的导购活码,如果没有返回错误
...
...
@@ -378,7 +380,9 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if
(!
addResp
.
isSuccess
())
{
remarkMap
.
put
(
"sm"
,
"创建动态活码失败,取单人活码"
);
if
(
StringUtils
.
isBlank
(
hm
.
getWxQrcode
()))
{
return
ServiceResponse
.
failure
(
HaoBanErrCode
.
ERR_OTHER
.
getCode
(),
"导购活码不存在"
);
remarkMap
.
put
(
"reason"
,
"无任何导购活码"
);
retDTO
.
setRemarkMap
(
remarkMap
);
return
ServiceResponse
.
success
(
retDTO
)
;
}
retDTO
.
setHmQrcode
(
hm
.
getWxQrcode
());
}
else
{
...
...
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