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
c42095e1
Commit
c42095e1
authored
Sep 27, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:游客权限
parent
40cd5725
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
AuditController.java
...com/gic/haoban/manage/web/controller/AuditController.java
+3
-0
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+6
-5
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/AuditController.java
View file @
c42095e1
...
...
@@ -333,6 +333,9 @@ public class AuditController extends WebBaseController {
@RequestMapping
(
"get-audit-count"
)
public
RestResponse
getAuditCount
(
String
clerkId
,
String
enterpriseId
)
{
WellDoneLoginDTO
loginUser
=
this
.
getLoginUser
();
if
(
loginUser
==
null
)
{
return
RestResponse
.
successResult
(
0
);
}
int
count
=
this
.
auditApiService
.
getAuditCount
(
loginUser
.
getWxEnterpriseId
(),
enterpriseId
,
clerkId
);
return
RestResponse
.
successResult
(
count
);
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
c42095e1
...
...
@@ -1449,15 +1449,16 @@ public class ClerkController extends WebBaseController {
/**
* 会员关联数量
*
* @param staffId
* @return
*/
@RequestMapping
(
"external-friend-count"
)
public
RestResponse
friendCount
(
String
staffId
)
{
public
RestResponse
friendCount
()
{
String
staffId
=
this
.
getLoginUser
().
getStaffId
();
StaffDTO
staff
=
staffApiService
.
selectById
(
staffId
);
List
<
Integer
>
statusFlags
=
new
ArrayList
<>();
statusFlags
.
add
(
3
);
statusFlags
.
add
(
4
);
if
(
staff
==
null
)
{
return
RestResponse
.
successResult
(
0
);
}
List
<
Integer
>
statusFlags
=
Arrays
.
asList
(
3
,
4
);
int
countExternalClerk
=
externalClerkRelatedApiService
.
getCountExternalClerk
(
staff
.
getWxEnterpriseId
(),
staffId
,
statusFlags
);
return
RestResponse
.
successResult
(
countExternalClerk
);
}
...
...
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