BUGFIX:无法通过谷歌登录/教育管理员无法查看design使用频次

This commit is contained in:
2025-09-03 18:15:23 +08:00
parent d8f0188596
commit c67d197da0
4 changed files with 30 additions and 14 deletions

View File

@@ -64,7 +64,7 @@ public class ConvenientInquiryController {
@GetMapping("/getDesignStatistic")
public Response<List<UserDesignStatisticDTO>> getDesignStatistic(@RequestParam(required = false) String startTime, @RequestParam(required = false) String endTime,
@RequestParam(required = false) List<Long> ids, @RequestParam(required = false) String email) {
Long accountId = UserContext.getUserHolder().getId();
/*Long accountId = UserContext.getUserHolder().getId();
String userEmail = accountService.getById(accountId).getUserEmail();
if (accountId.equals(31L) || accountId.equals(87L) || accountId.equals(83L)
|| accountId.equals(6L) || accountId.equals(4L) || accountId.equals(73L)
@@ -85,7 +85,8 @@ public class ConvenientInquiryController {
return Response.success(designStatistic);
} else {
return Response.fail("Sorry, you don't have permission");
}
}*/
return Response.success(convenientInquiryService.getDesignStatistic(startTime, endTime, ids, email));
}