|
|
|
@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
|
|
import com.supervision.police.domain.ModelRecordType;
|
|
|
|
|
import com.supervision.police.domain.NoteRecordSplit;
|
|
|
|
|
import com.supervision.police.service.CaseTaskRecordService;
|
|
|
|
|
import com.supervision.police.service.NoteRecordSplitService;
|
|
|
|
|
import com.supervision.springaidemo.dto.QARecordNodeDTO;
|
|
|
|
|
import lombok.Data;
|
|
|
|
@ -41,7 +42,9 @@ public class RecordSplitTypeThread implements Callable<String> {
|
|
|
|
|
private final NoteRecordSplitService noteRecordSplitService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public RecordSplitTypeThread(List<ModelRecordType> allTypeList, NoteRecordSplit noteRecordSplit, OllamaChatClient chatClient, NoteRecordSplitService noteRecordSplitService) {
|
|
|
|
|
|
|
|
|
|
public RecordSplitTypeThread(List<ModelRecordType> allTypeList, NoteRecordSplit noteRecordSplit, OllamaChatClient chatClient,
|
|
|
|
|
NoteRecordSplitService noteRecordSplitService) {
|
|
|
|
|
this.allTypeList = allTypeList;
|
|
|
|
|
this.chatClient = chatClient;
|
|
|
|
|
this.noteRecordSplitService = noteRecordSplitService;
|
|
|
|
@ -90,6 +93,7 @@ public class RecordSplitTypeThread implements Callable<String> {
|
|
|
|
|
public String call() throws Exception {
|
|
|
|
|
String type;
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
|
|
StopWatch stopWatch = new StopWatch();
|
|
|
|
|
// 首先拼接分类模板
|
|
|
|
|
List<String> typeContextList = new ArrayList<>();
|
|
|
|
@ -127,6 +131,7 @@ public class RecordSplitTypeThread implements Callable<String> {
|
|
|
|
|
type = "无";
|
|
|
|
|
}
|
|
|
|
|
noteRecordSplitService.lambdaUpdate().set(NoteRecordSplit::getRecordType, type).eq(NoteRecordSplit::getId, noteRecordSplit.getId()).update();
|
|
|
|
|
|
|
|
|
|
return noteRecordSplit.getId();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|