|
|
@@ -31,6 +31,7 @@ import me.zhengjie.dao.mybatis.entity.OrderFileEntity;
|
|
|
import me.zhengjie.dao.mybatis.entity.FaceCompareEntity;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
@@ -246,9 +247,11 @@ public class BankNotarizeController extends BaseController {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
- //如果成功的话 清除redis的缓存
|
|
|
+ //查看有无做过对比的redis记录 如果有则清除
|
|
|
Set<String> keys = redisTemplate.keys("idCard*");
|
|
|
- redisTemplate.delete(keys);
|
|
|
+ if (!CollectionUtils.isEmpty(keys)){
|
|
|
+ redisTemplate.delete(keys);
|
|
|
+ }
|
|
|
|
|
|
// 判断传入的当事人 是否做过人脸核身
|
|
|
QueryWrapper<FaceCompareEntity> thirdPartyInterfaceEntityQueryWrapper = new QueryWrapper<>();
|