办学质量监测教学评价系统
ageer
2024-02-28 9bbf90458a71c40fbb559ef7149a9b5af9a7309b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package com.xmzs.system.service.impl;
 
import com.xmzs.common.satoken.utils.LoginHelper;
import com.xmzs.common.sensitive.core.SensitiveService;
import org.springframework.stereotype.Service;
 
/**
 * 脱敏服务
 * 默认管理员不过滤
 * 需自行根据业务重写实现
 *
 * @author Lion Li
 * @version 3.6.0
 */
@Service
public class SysSensitiveServiceImpl implements SensitiveService {
 
    /**
     * 是否脱敏
     */
    @Override
    public boolean isSensitive() {
        return !LoginHelper.isSuperAdmin() || !LoginHelper.isTenantAdmin();
    }
 
}