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
17daf057
Commit
17daf057
authored
Jul 19, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:多人活码任意取一个数据展示
parent
9567104c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
23 deletions
+25
-23
HmQrcodeApiServiceImpl.java
...e/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
+25
-23
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmQrcodeApiServiceImpl.java
View file @
17daf057
...
@@ -375,33 +375,35 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
...
@@ -375,33 +375,35 @@ public class HmQrcodeApiServiceImpl implements HmQrcodeApiService {
*/
*/
private
List
<
String
>
setStoreClerk
(
HmQrcodeQDTO
hmQrcodeQDTO
,
String
wxEnterpriseId
,
Long
hmId
,
Integer
hmType
)
{
private
List
<
String
>
setStoreClerk
(
HmQrcodeQDTO
hmQrcodeQDTO
,
String
wxEnterpriseId
,
Long
hmId
,
Integer
hmType
)
{
List
<
String
>
clerkIdList
=
hmQrcodeQDTO
.
getClerkIdList
();
List
<
String
>
clerkIdList
=
hmQrcodeQDTO
.
getClerkIdList
();
if
(
CollectionUtils
.
isEmpty
(
clerkIdList
))
{
return
null
;
}
if
(
hmType
==
2
)
{
if
(
hmType
==
2
)
{
//多人活码
//多人活码
insertHmClerkRelation
(
hmQrcodeQDTO
,
wxEnterpriseId
,
hmId
,
clerkIdList
);
insertHmClerkRelation
(
hmQrcodeQDTO
,
wxEnterpriseId
,
hmId
,
clerkIdList
);
}
else
if
(
hmType
==
1
)
{
}
//单人活码
//单人活码
String
clerkId
=
clerkIdList
.
get
(
0
);
String
clerkId
=
clerkIdList
.
get
(
0
);
hmQrcodeQDTO
.
setClerkId
(
clerkId
);
hmQrcodeQDTO
.
setClerkId
(
clerkId
);
ClerkDTO
clerkDTO
=
clerkService
.
getclerkById
(
clerkId
);
ClerkDTO
clerkDTO
=
clerkService
.
getclerkById
(
clerkId
);
if
(
clerkDTO
!=
null
)
{
if
(
clerkDTO
!=
null
)
{
hmQrcodeQDTO
.
setClerkName
(
clerkDTO
.
getClerkName
());
hmQrcodeQDTO
.
setClerkName
(
clerkDTO
.
getClerkName
());
hmQrcodeQDTO
.
setClerkCode
(
clerkDTO
.
getClerkCode
());
hmQrcodeQDTO
.
setClerkCode
(
clerkDTO
.
getClerkCode
());
String
storeId
=
clerkDTO
.
getStoreId
();
String
storeId
=
clerkDTO
.
getStoreId
();
hmQrcodeQDTO
.
setStoreId
(
storeId
);
hmQrcodeQDTO
.
setStoreId
(
storeId
);
StoreDTO
storeDTO
=
storeService
.
getStore
(
storeId
);
StoreDTO
storeDTO
=
storeService
.
getStore
(
storeId
);
if
(
storeDTO
!=
null
)
{
if
(
storeDTO
!=
null
)
{
hmQrcodeQDTO
.
setStoreCode
(
storeDTO
.
getStoreCode
());
hmQrcodeQDTO
.
setStoreCode
(
storeDTO
.
getStoreCode
());
hmQrcodeQDTO
.
setStoreName
(
storeDTO
.
getStoreName
());
hmQrcodeQDTO
.
setStoreName
(
storeDTO
.
getStoreName
());
}
}
}
StaffClerkRelationDTO
staffClerkRelationDTO
=
staffClerkRelationService
.
getByClerkId
(
clerkId
);
}
if
(
staffClerkRelationDTO
!=
null
)
{
StaffClerkRelationDTO
staffClerkRelationDTO
=
staffClerkRelationService
.
getByClerkId
(
clerkId
);
hmQrcodeQDTO
.
setStaffId
(
staffClerkRelationDTO
.
getStaffId
());
if
(
staffClerkRelationDTO
!=
null
)
{
TabHaobanStaff
tabHaobanStaff
=
staffService
.
selectBy
Id
(
staffClerkRelationDTO
.
getStaffId
());
hmQrcodeQDTO
.
setStaff
Id
(
staffClerkRelationDTO
.
getStaffId
());
if
(
tabHaobanStaff
!=
null
)
{
TabHaobanStaff
tabHaobanStaff
=
staffService
.
selectById
(
staffClerkRelationDTO
.
getStaffId
());
hmQrcodeQDTO
.
setStaffName
(
tabHaobanStaff
.
getStaffName
());
if
(
tabHaobanStaff
!=
null
)
{
hmQrcodeQDTO
.
setWxUserId
(
tabHaobanStaff
.
getWxUserId
());
hmQrcodeQDTO
.
setStaffName
(
tabHaobanStaff
.
getStaffName
());
}
hmQrcodeQDTO
.
setWxUserId
(
tabHaobanStaff
.
getWxUserId
());
}
}
}
}
return
clerkIdList
;
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