1. fix bugs

topo_dev
xueqingkun 9 months ago
parent 4b73b77375
commit 5d23461d66

@ -65,7 +65,7 @@ public interface LangChainChatService {
@GetExchange(url = "/knowledge_base/list_files")
LangChainChatRes<List<String>> queryFileList(@RequestParam String knowledge_base_name);
@PostExchange(url = "/knowledge_base//delete_knowledge_base", contentType = MediaType.APPLICATION_JSON_VALUE)
@PostExchange(url = "/knowledge_base/delete_knowledge_base", contentType = MediaType.TEXT_PLAIN_VALUE)
LangChainChatRes<Object> deleteBase(@RequestBody String knowledge_base_name);

@ -23,10 +23,10 @@ import com.supervision.common.utils.ExcelReader;
import com.supervision.common.utils.IPages;
import com.supervision.common.utils.StringUtils;
import com.supervision.config.BusinessException;
import com.supervision.constant.DataStatus;
import com.supervision.police.domain.CasePerson;
import com.supervision.police.domain.ComDictionary;
import com.supervision.police.dto.*;
import com.supervision.police.mapper.CasePersonMapper;
import com.supervision.police.mapper.ModelCaseMapper;
import com.supervision.police.domain.ModelCase;
import com.supervision.police.service.CasePersonService;
@ -183,7 +183,7 @@ public class ModelCaseServiceImpl extends ServiceImpl<ModelCaseMapper, ModelCase
if (200 != langChainChatRes.getCode()){
log.info("删除知识库失败");
}
modelCase.setDataStatus(StringUtils.getUUID());
modelCase.setDataStatus(DataStatus.NOT_AVAILABLE.getCode());
int i = modelCaseMapper.updateById(modelCase);
if (i > 0) {
return R.okMsg("删除成功");

Loading…
Cancel
Save