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
8e38029c
Commit
8e38029c
authored
Jun 04, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://115.159.76.241/haoban3.0/haoban-manage3.0.git
into developer
parents
3ffb0f37
57f79eec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
AuditApiServiceImpl.java
.../manage/service/service/out/impl/AuditApiServiceImpl.java
+1
-0
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+1
-0
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+7
-5
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/AuditApiServiceImpl.java
View file @
8e38029c
...
...
@@ -204,6 +204,7 @@ public class AuditApiServiceImpl implements AuditApiService{
staffClerkRelation
.
setStoreId
(
tab
.
getCommitStoreId
());
staffClerkRelation
.
setWxEnterpriseId
(
tab
.
getWxEnterpriseId
());
staffClerkRelation
.
setWxUserId
(
obj
.
getWxUserId
());
staffClerkRelation
.
setStaffId
(
obj
.
getStaffId
());
staffClerkRelationApiService
.
insert
(
staffClerkRelation
);
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
8e38029c
...
...
@@ -223,6 +223,7 @@ public class AuditController extends WebBaseController{
staffClerkRelation
.
setStoreId
(
storeId
);
staffClerkRelation
.
setWxEnterpriseId
(
wxEnterpriseId
);
staffClerkRelation
.
setWxUserId
(
wxUserId
);
staffClerkRelation
.
setStaffId
(
staffId
);
staffClerkRelationApiService
.
insert
(
staffClerkRelation
);
audit
.
setAuditStatus
(
1
);
//发送消息
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
8e38029c
...
...
@@ -115,15 +115,16 @@ public class ClerkController extends WebBaseController{
List
<
StaffClerkRelationDTO
>
list
=
staffClerkRelationApiService
.
listByStoreId
(
storeId
);
List
<
String
>
staffIds
=
list
.
stream
().
map
(
s
->
s
.
getStaffId
()).
collect
(
Collectors
.
toList
());
List
<
StaffDTO
>
resultlist
=
staffApiService
.
listByIds
(
staffIds
);
Map
<
String
,
Staff
ClerkRelationDTO
>
map
=
com
.
gic
.
commons
.
util
.
CollectionUtil
.
toMap
(
list
,
"staffId"
);
Map
<
String
,
Staff
DTO
>
map
=
com
.
gic
.
commons
.
util
.
CollectionUtil
.
toMap
(
result
list
,
"staffId"
);
int
size
=
0
;
if
(
resultlist
!=
null
){
size
=
resultlist
.
size
();
}
for
(
StaffDTO
dto
:
resultlist
){
StaffClerkRelationDTO
staffClerkRelationDTO
=
map
.
get
(
dto
.
getStaffId
());
dto
.
setClerkCode
(
staffClerkRelationDTO
.
getClerkCode
());
dto
.
setClerkId
(
staffClerkRelationDTO
.
getClerkId
());
List
<
StaffDTO
>
resultList
=
new
ArrayList
<>();
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
list
){
StaffDTO
dto
=
map
.
get
(
staffClerkRelationDTO
.
getStaffId
());
if
(
size
<
20
){
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
staffClerkRelationDTO
.
getEnterpriseId
(),
staffClerkRelationDTO
.
getClerkCode
());
if
(
clerk
!=
null
){
...
...
@@ -136,6 +137,7 @@ public class ClerkController extends WebBaseController{
}
else
{
dto
.
setMemberCount
(
0
);
}
resultList
.
add
(
dto
);
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
resultlist
);
...
...
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