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
393164eb
Commit
393164eb
authored
Jul 07, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
链接
parent
6d4d9622
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
HmLinkApiServiceImpl.java
...age/service/service/out/impl/hm/HmLinkApiServiceImpl.java
+2
-5
HmStoreController.java
...ic/haoban/manage/web/controller/hm/HmStoreController.java
+6
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/hm/HmLinkApiServiceImpl.java
View file @
393164eb
...
...
@@ -242,11 +242,8 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
if
(
StringUtils
.
isBlank
(
clerkId
)
||
"-1"
.
equals
(
clerkId
))
{
return
null
;
}
List
<
HmQrcodeBO
>
hmList
=
this
.
hmQrcodeService
.
listByClerkId
(
clerkId
,
wxEnterpriseId
);
if
(
CollectionUtils
.
isNotEmpty
(
hmList
))
{
return
hmList
.
get
(
0
);
}
return
null
;
HmQrcodeBO
hm
=
this
.
hmQrcodeService
.
queryByClerkId
(
clerkId
,
wxEnterpriseId
,
0
);
return
hm
;
}
private
HmQrcodeBO
getHmFormStore
(
String
wxEnterpriseId
,
String
inStoreId
,
int
dz
,
int
dy
)
{
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/hm/HmStoreController.java
View file @
393164eb
...
...
@@ -70,6 +70,7 @@ public class HmStoreController {
@ResponseBody
public
RestResponse
<
Object
>
listStoreClerk
(
HttpServletRequest
request
,
BasePageInfo
basePageInfo
)
{
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
String
wxEnterpriseId
=
loginUser
.
getWxEnterpriseId
()
;
// 分组id
String
storeGroupId
=
request
.
getParameter
(
"storeGroupId"
);
// 门店参数
...
...
@@ -114,12 +115,12 @@ public class HmStoreController {
retPage
.
setTotalPage
(
page
.
getTotalPage
());
List
<
ClerkStoreListVO
>
result
=
EntityUtil
.
changeEntityListByJSON
(
ClerkStoreListVO
.
class
,
page
.
getResult
());
// 好办状态
this
.
haobanStatus
(
result
);
this
.
haobanStatus
(
result
,
wxEnterpriseId
);
retPage
.
setResult
(
result
);
return
RestResponse
.
successResult
(
retPage
);
}
private
void
haobanStatus
(
List
<
ClerkStoreListVO
>
list
)
{
private
void
haobanStatus
(
List
<
ClerkStoreListVO
>
list
,
String
wxEnterpriseId
)
{
List
<
String
>
clerkIdList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isEmpty
(
list
))
{
return
;
...
...
@@ -144,11 +145,11 @@ public class HmStoreController {
List
<
String
>
statusList
=
new
ArrayList
<>();
if
(
CollectionUtils
.
isNotEmpty
(
clerkIdList
))
{
List
<
StaffClerkRelationDTO
>
clerkRelationList
=
this
.
staffClerkRelationApiService
.
list
ByClerkIds
(
clerkIdList
);
.
list
ClerkIdConcatFlagByClerkIds
(
clerkIdList
,
wxEnterpriseId
);
if
(
CollectionUtils
.
isNotEmpty
(
clerkRelationList
))
{
status2List
.
addAll
(
clerkRelationList
.
stream
().
filter
(
dto
->
dto
.
get
StatusFlag
()
==
1
)
status2List
.
addAll
(
clerkRelationList
.
stream
().
filter
(
dto
->
dto
.
get
OpenConcatFlag
()==
0
)
.
map
(
dto
->
dto
.
getClerkId
()).
collect
(
Collectors
.
toList
()));
statusList
.
addAll
(
clerkRelationList
.
stream
().
filter
(
dto
->
dto
.
get
StatusFlag
()
==
2
)
statusList
.
addAll
(
clerkRelationList
.
stream
().
filter
(
dto
->
dto
.
get
OpenConcatFlag
()
==
1
)
.
map
(
dto
->
dto
.
getClerkId
()).
collect
(
Collectors
.
toList
()));
}
}
...
...
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