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
abe7c79e
Commit
abe7c79e
authored
Jul 27, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增修改活码
parent
092f787b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+14
-10
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
abe7c79e
...
...
@@ -423,28 +423,30 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
return
null
;
}
String
enterpriseId
=
hmQrcodeQDTO
.
getEnterpriseId
();
//单人活码
String
clerkId
=
clerkIdList
.
get
(
0
);
ClerkDTO
clerkDTO
=
clerkService
.
getclerkById
(
clerkId
);
if
(
clerkDTO
!=
null
)
{
String
name
=
hmQrcodeQDTO
.
getName
();
if
(
StringUtils
.
isBlank
(
name
))
{
hmQrcodeQDTO
.
setName
(
clerkDTO
.
getClerkName
());
}
}
if
(
hmType
==
2
)
{
//多人活码
insertHmClerkRelation
(
enterpriseId
,
wxEnterpriseId
,
hmId
,
clerkIdList
,
addFlag
);
}
else
if
(
hmType
==
1
)
{
//单人活码
HmQrcodeBO
hmQrcodeBO
=
hmQrcodeService
.
queryByClerkId
(
clerkId
,
wxEnterpriseId
);
if
(
addFlag
&&
hmQrcodeBO
!=
null
)
{
logger
.
error
(
"已经生成过活码,clerkId:{}"
,
clerkId
);
return
null
;
}
}
hmQrcodeQDTO
.
setClerkId
(
clerkId
);
ClerkDTO
clerkDTO
=
clerkService
.
getclerkById
(
clerkId
);
if
(
clerkDTO
!=
null
)
{
String
name
=
hmQrcodeQDTO
.
getName
();
String
clerkName
=
clerkDTO
.
getClerkName
();
if
(
StringUtils
.
isBlank
(
name
))
{
hmQrcodeQDTO
.
setName
(
clerkName
);
}
hmQrcodeQDTO
.
setClerkName
(
clerkName
);
hmQrcodeQDTO
.
setClerkName
(
clerkDTO
.
getClerkName
());
hmQrcodeQDTO
.
setClerkCode
(
clerkDTO
.
getClerkCode
());
String
storeId
=
clerkDTO
.
getStoreId
();
hmQrcodeQDTO
.
setStoreId
(
storeId
);
...
...
@@ -454,6 +456,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
hmQrcodeQDTO
.
setStoreName
(
storeDTO
.
getStoreName
());
}
}
StaffClerkRelationDTO
staffClerkRelationDTO
=
staffClerkRelationService
.
getByClerkId
(
clerkId
);
if
(
staffClerkRelationDTO
!=
null
)
{
hmQrcodeQDTO
.
setStaffId
(
staffClerkRelationDTO
.
getStaffId
());
...
...
@@ -463,6 +466,7 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
hmQrcodeQDTO
.
setWxUserId
(
tabHaobanStaff
.
getWxUserId
());
}
}
}
return
clerkIdList
;
}
...
...
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