| | |
| | | List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVOList = redisCache.getCacheObject(userId + "ivrTaskTemplateScriptVOList"); |
| | | //根据前端传回的条件,获取当前题目 |
| | | IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO = questionMessage.getNowQuestion(); |
| | | if (ivrTaskTemplateScriptVO.getID() == null) { |
| | | if (ivrTaskTemplateScriptVO.getId() == null) { |
| | | QuestionMessage returnQues = redisCache.getCacheObject(userId + "returnQues"); |
| | | ivrTaskTemplateScriptVO = returnQues.getNowQuestion(); |
| | | } |
| | |
| | | if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() && StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches() || StringUtils.isEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { |
| | | |
| | | //说明匹配正确了 |
| | | ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).setIsUserOperation(true); |
| | | ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).setIsUserOperation(1); |
| | | List<IvrTaskTemplateScriptVO> backQuset = redisCache.getCacheObject(userId + "backQuset"); |
| | | //匹配完成后,将结果保存到新的数组 |
| | | backQuset.add(ivrTaskTemplateScriptVO); |