admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
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
27
package com.yeshi.fanli.service.impl.user;
 
import javax.annotation.Resource;
 
import org.springframework.stereotype.Service;
 
import com.yeshi.fanli.dao.mybatis.user.MaskKeyMapper;
import com.yeshi.fanli.service.inter.user.MaskKeyService;
 
@Service
public class MaskKeyServiceImpl implements MaskKeyService {
 
    @Resource
    private MaskKeyMapper maskKeyMapper;
 
    @Override
    public boolean examineContent(String content) {
        boolean isValid = false;
        int count = maskKeyMapper.examineContent(content);
        if (count > 0) {
            isValid = true;
        }
 
        return isValid;
    }
 
}