Browse Source

Merge branch 'small-tupu' of http://124.70.32.114:3100/jianzhenyu/Changsha_tupu into hanyuqing

small-tupu
hanyuqing 7 months ago
parent
commit
77361f6656
  1. 9
      ruoyi-api/src/main/java/com/ruoyi/api/controller/DocApiController.java
  2. 2
      ruoyi-ui/src/views/system/fileManage/index.vue

9
ruoyi-api/src/main/java/com/ruoyi/api/controller/DocApiController.java

@ -1857,9 +1857,13 @@ public class DocApiController extends BaseController {
//如果中途嘎了java等待,然后20分钟去访问mysql时间最后一条数据
}
public static Integer gopythonStatus = 0;
public void goPython(ZhyTaskInfo info, List<Map<String, Object>> searchItems,String userId)
throws JsonProcessingException, InterruptedException {
if (gopythonStatus==1){
return;
}
gopythonStatus = 1;
List<String> keywords = new ArrayList<>();
keywords.add(info.getName1());
if(info.getName2()!=null){
@ -1868,6 +1872,7 @@ public void goPython(ZhyTaskInfo info, List<Map<String, Object>> searchItems,Str
int maxRetries = 3; // 最大重试次数,避免无限重试
int retryCount = 0;
Gson gson = new Gson();
while (retryCount <= maxRetries) {
try {
// 构建请求数据
@ -1968,7 +1973,7 @@ public void goPython(ZhyTaskInfo info, List<Map<String, Object>> searchItems,Str
continue;
}
}
gopythonStatus = 0;
System.out.println("goPython 流程结束。");
}
public List<Long> getIdsByGroupAndType(

2
ruoyi-ui/src/views/system/fileManage/index.vue

@ -378,7 +378,7 @@
</div>
</el-dialog>
<el-dialog title="添加知识点" :visible.sync="addTxt" width="400px" append-to-body>
<el-form ref="form" :model="form1" label-width="80px">
<el-form ref="form" label-width="80px">
<el-form-item style="position: relative ;" label="知识标题">
<el-input v-model="txtName">
</el-input>

Loading…
Cancel
Save