| | |
| | | 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 = true;
|
| | | int count = maskKeyMapper.examineContent(content);
|
| | | if (count > 0) {
|
| | | isValid = false;
|
| | | }
|
| | |
|
| | | return isValid;
|
| | | }
|
| | |
|
| | | }
|
| | | 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; |
| | | } |
| | | |
| | | } |