|
|
@ -109,7 +109,7 @@ public class InteractiveServiceImpl implements IInteractiveService { |
|
|
|
extraVO.setFuncCode("stations_num"); |
|
|
|
extraVO.setFuncCode("stations_num"); |
|
|
|
String label; |
|
|
|
String label; |
|
|
|
SearchStationTypeEnum stationTypeEnum = SearchStationTypeEnum.getTypeEnum(enumType); |
|
|
|
SearchStationTypeEnum stationTypeEnum = SearchStationTypeEnum.getTypeEnum(enumType); |
|
|
|
if(!startTime.equals(endTime)) { |
|
|
|
if(!startTime.equals(endTime) && SearchTypeEnum.HISTORY.getSearchType().equals(type)) { |
|
|
|
label = String.format("自%s到%s时间为止,",startTime,endTime); |
|
|
|
label = String.format("自%s到%s时间为止,",startTime,endTime); |
|
|
|
} |
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
@ -239,12 +239,20 @@ public class InteractiveServiceImpl implements IInteractiveService { |
|
|
|
logger.info("interactive:getAnswerBySessionIds","获取答案:" + response.body()); |
|
|
|
logger.info("interactive:getAnswerBySessionIds","获取答案:" + response.body()); |
|
|
|
} |
|
|
|
} |
|
|
|
result.stream().filter(answerVO -> answerVO.getRunning() == 0).forEach(answerVO -> { |
|
|
|
result.stream().filter(answerVO -> answerVO.getRunning() == 0).forEach(answerVO -> { |
|
|
|
|
|
|
|
redisTemplate.opsForList().remove(HZIMS_BIGMODEL_ASK_KEY,1,answerVO.getSessionId()); |
|
|
|
Object[] extras = answerVO.getExtras(); |
|
|
|
Object[] extras = answerVO.getExtras(); |
|
|
|
if(ObjectUtil.isEmpty(answerVO.getExtras()) || extras.length == 0){ |
|
|
|
if(ObjectUtil.isEmpty(answerVO.getExtras()) || extras.length == 0){ |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
List<String> extraList = Arrays.stream(extras).map(Object::toString).map(extraResolveStrategyService::resolve).map(JSON::toJSONString).collect(Collectors.toList()); |
|
|
|
try { |
|
|
|
answerVO.setExtras(extraList.toArray(new String[extraList.size()])); |
|
|
|
List<String> extraList = Arrays.stream(extras).map(Object::toString).map(extraResolveStrategyService::resolve).map(JSON::toJSONString).collect(Collectors.toList()); |
|
|
|
|
|
|
|
answerVO.setExtras(extraList.toArray(new String[extraList.size()])); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch(Exception e) { |
|
|
|
|
|
|
|
redisTemplate.opsForList().leftPush(HZIMS_BIGMODEL_ASK_KEY,answerVO.getSessionId()); |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
throw new RuntimeException(e); |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
} |
|
|
|
} |
|
|
|