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
fd2a6a9b
Commit
fd2a6a9b
authored
Jul 14, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:活码
parent
7f96451a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+4
-14
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
fd2a6a9b
...
...
@@ -121,7 +121,10 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
}
else
{
hmQrcodeQDTO
.
setHmCode
(
"HM02"
+
hmId
);
}
Long
hmGroupId
=
hmQrcodeQDTO
.
getHmGroupId
();
if
(
hmGroupId
==
null
)
{
hmQrcodeQDTO
.
setHmGroupId
(
0L
);
}
List
<
String
>
clerkIdList
=
setStoreClerk
(
hmQrcodeQDTO
,
wxEnterpriseId
,
hmId
,
hmType
);
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
return
ServiceResponse
.
failure
(
Convert
.
toStr
(
HaoBanErrCodeCommon
.
ERR_8
.
getCode
()),
"该导购已经生成过活码或未关联过好办"
);
...
...
@@ -172,19 +175,6 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
GicLogRecordEvaluationContext
.
putAttribute
(
"userName"
,
userName
);
}
private
void
saveWelcomeRelation
(
HmQrcodeQDTO
hmQrcodeQDTO
)
{
if
(
StringUtils
.
isNotBlank
(
hmQrcodeQDTO
.
getWelcomeId
()))
{
HmWelcomeRelationBO
welcomeRelationBo
=
new
HmWelcomeRelationBO
();
welcomeRelationBo
.
setEnterpriseId
(
hmQrcodeQDTO
.
getEnterpriseId
());
welcomeRelationBo
.
setWxEnterpriseId
(
hmQrcodeQDTO
.
getWxEnterpriseId
());
welcomeRelationBo
.
setWelcomeId
(
hmQrcodeQDTO
.
getWelcomeId
());
welcomeRelationBo
.
setReferId
(
hmQrcodeQDTO
.
getHmId
()
+
""
);
welcomeRelationBo
.
setReferCode
(
hmQrcodeQDTO
.
getHmCode
());
welcomeRelationBo
.
setReferName
(
hmQrcodeQDTO
.
getName
());
welcomeRelationBo
.
setType
(
HmWelcomeReferType
.
HM
.
getCode
());
welcomeRelationService
.
saveHmWelcomeRelation
(
welcomeRelationBo
);
}
}
@GicLogRecord
(
value
=
"修改员工活码-${#hmName}-${#logContent}"
,
category
=
GicLogRecordCategoryEnum
.
HUOMA
,
...
...
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