Merge remote-tracking branch 'origin/main'

This commit is contained in:
PC 2026-02-27 09:07:30 +08:00
commit bf49850b41

View File

@ -64,7 +64,7 @@ public class EbikeStatisticsController {
boolean isSuperAdmin = Optional.ofNullable(staffInfo.getRoles()) boolean isSuperAdmin = Optional.ofNullable(staffInfo.getRoles())
.orElse(Collections.emptyList()) .orElse(Collections.emptyList())
.stream() .stream()
.anyMatch(role -> "super_admin".equals(role.getRoleCode())); .anyMatch(CommonEbikeRole::getSysAdmin);
// 判断是否超级管理员 // 判断是否超级管理员
if (!isSuperAdmin) { if (!isSuperAdmin) {
dto.setOperatorId(staffInfo.getOperatorId()); dto.setOperatorId(staffInfo.getOperatorId());