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
d0a1b9b9
Commit
d0a1b9b9
authored
Sep 17, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gic 企业过期停用
parent
0f8c6940
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletions
+19
-1
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+19
-1
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
d0a1b9b9
...
@@ -408,6 +408,21 @@ public class ClerkController extends WebBaseController{
...
@@ -408,6 +408,21 @@ public class ClerkController extends WebBaseController{
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
}
//获取门店详情
public
boolean
isEnterpriseOver
(
String
eid
)
{
EnterpriseDTO
enterprise
=
enterpriseService
.
getEnterpriseByEid
(
eid
);
if
(
enterprise
==
null
||
enterprise
.
getExpireTime
()
==
null
){
return
false
;
}
if
(
enterprise
.
getExpireTime
().
getTime
()
>
System
.
currentTimeMillis
()){
return
false
;
}
return
true
;
}
//精确查,根据手机号或者code,查找
//精确查,根据手机号或者code,查找
@RequestMapping
(
"query-clerk-list-by-code"
)
@RequestMapping
(
"query-clerk-list-by-code"
)
public
HaobanResponse
queryClerkListByCode
(
String
keyword
,
String
wxEnterpriseId
){
public
HaobanResponse
queryClerkListByCode
(
String
keyword
,
String
wxEnterpriseId
){
...
@@ -418,7 +433,10 @@ public class ClerkController extends WebBaseController{
...
@@ -418,7 +433,10 @@ public class ClerkController extends WebBaseController{
if
(
list
==
null
||
list
.
isEmpty
()){
if
(
list
==
null
||
list
.
isEmpty
()){
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
}
List
<
String
>
enterpriseIdList
=
list
.
stream
().
map
(
s
->
s
.
getEnterpriseId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
enterpriseIdList
=
list
.
stream
().
filter
(
s
->{
boolean
over
=
isEnterpriseOver
(
s
.
getEnterpriseId
());
return
!
over
;
}).
map
(
s
->
s
.
getEnterpriseId
()).
collect
(
Collectors
.
toList
());
List
<
ClerkDTO
>
clerkList
=
clerkNewService
.
listClerkByEnterpriseIdAndSearch
(
enterpriseIdList
,
keyword
);
List
<
ClerkDTO
>
clerkList
=
clerkNewService
.
listClerkByEnterpriseIdAndSearch
(
enterpriseIdList
,
keyword
);
List
<
ClerkStoreVO
>
clerkStoreList
=
new
ArrayList
<>();
List
<
ClerkStoreVO
>
clerkStoreList
=
new
ArrayList
<>();
if
(
CollectionUtil
.
isEmpty
(
clerkList
)){
if
(
CollectionUtil
.
isEmpty
(
clerkList
)){
...
...
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