Commit 1106e8a7 authored by alex yao's avatar alex yao

feat:Ai软著

parent b11b1c15
package cn.com.poc.ai_software_copyright.dto;
import java.util.Map;
/**
* @author alex.yao
* @date 2026/1/5
......@@ -8,7 +10,7 @@ public class CallbackDto {
private String taskId;
private String result;
private Map<String, Object> result;
public String getTaskId() {
return taskId;
......@@ -18,11 +20,11 @@ public class CallbackDto {
this.taskId = taskId;
}
public String getResult() {
public Map<String, Object> getResult() {
return result;
}
public void setResult(String result) {
public void setResult(Map<String, Object> result) {
this.result = result;
}
}
......@@ -112,8 +112,9 @@ public class BizSoftwareCopyrightRestImpl implements BizSoftwareCopyrightRest {
@Override
public void callbackGeneratedBaseDoc(CallbackDto callbackDto) throws Exception {
String pri = "CALL_BACK:";
String taskId = callbackDto.getTaskId();
redisService.set(pri + taskId, JsonUtils.serialize(callbackDto));
if (redisService.hasKey(taskId)) {
redisService.set(taskId, JsonUtils.serialize(callbackDto.getResult()));
}
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment