获取企业ID

cert
anthonywj 2 years ago
parent f6604490cc
commit a329755408

@ -93,7 +93,6 @@ public class SupCertController {
// }
@AuthRuleAnnotation("")
@GetMapping("/sup/company/cert/filter")
public BaseResponse filterUserCompanyCert(FilterSupCertRequest filterSupCertRequest,
@ -427,6 +426,16 @@ public class SupCertController {
return authAdmin.getCustomerId() + "";
}
public String getCompanyId() {
ServletRequestAttributes attributes = (ServletRequestAttributes) RequestContextHolder.getRequestAttributes();
if (attributes == null) {
throw new JsonException(ResultEnum.NOT_NETWORK);
}
HttpServletRequest request = attributes.getRequest();
String companyId = request.getHeader("companyId");
return companyId;
}
/**
*
*

Loading…
Cancel
Save