|
@@ -111,7 +111,7 @@ public class FrontServiceImpl implements IFrontService {
|
|
|
@Override
|
|
|
public TXinyiChatRecord qaDetailByWarningId(String warningId) {
|
|
|
//2024年5月28日19:10:21 只获取决策的 因为决策和仿真预测是一个接口,所以通过类型区分
|
|
|
- List<TXinyiChatRecord> tXinyiChatRecords = this.xinyiChatRecordMapper.selectTXinyiChatRecordList(TXinyiChatRecord.builder().warningId(warningId).build());
|
|
|
+ List<TXinyiChatRecord> tXinyiChatRecords = this.xinyiChatRecordMapper.selectTXinyiChatRecordList(TXinyiChatRecord.builder().warningId(warningId).type(1).build());
|
|
|
if(CollectionUtils.isEmpty(tXinyiChatRecords))
|
|
|
return null;
|
|
|
TXinyiChatRecord tXinyiChatRecord = tXinyiChatRecords.get(0);
|
|
@@ -119,7 +119,7 @@ public class FrontServiceImpl implements IFrontService {
|
|
|
if(tXinyiChatRecord.getAnswer().contains(DECISION_REPORT.getCode()))
|
|
|
return tXinyiChatRecord;
|
|
|
else{
|
|
|
- tXinyiChatRecords = this.xinyiChatRecordMapper.selectTXinyiChatRecordList(TXinyiChatRecord.builder().warningId(warningId).userId(WARNING_DEFAULT_CREATE).build());
|
|
|
+ tXinyiChatRecords = this.xinyiChatRecordMapper.selectTXinyiChatRecordList(TXinyiChatRecord.builder().warningId(warningId).type(1).userId(WARNING_DEFAULT_CREATE).build());
|
|
|
return CollectionUtils.isEmpty(tXinyiChatRecords) ? null : tXinyiChatRecords.get(0);
|
|
|
}
|
|
|
}
|