admin
2024-04-26 5e7b0ed4a154ad067cbcf4aa1a1c7cce32f9864c
fanli/src/main/java/com/yeshi/fanli/service/impl/user/MaskKeyServiceImpl.java
@@ -1,27 +1,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 = 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;
   }
}