Commit c42095e1 by 墨竹

feat:游客权限

parent 40cd5725
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment