Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
bf49850b41
@ -64,7 +64,7 @@ public class EbikeStatisticsController {
|
||||
boolean isSuperAdmin = Optional.ofNullable(staffInfo.getRoles())
|
||||
.orElse(Collections.emptyList())
|
||||
.stream()
|
||||
.anyMatch(role -> "super_admin".equals(role.getRoleCode()));
|
||||
.anyMatch(CommonEbikeRole::getSysAdmin);
|
||||
// 判断是否超级管理员
|
||||
if (!isSuperAdmin) {
|
||||
dto.setOperatorId(staffInfo.getOperatorId());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user