删除病历夹时校验

This commit is contained in:
wuchunlei
2025-05-28 09:08:50 +08:00
parent 2b59423d55
commit b94165d00c

View File

@@ -103,7 +103,7 @@ public class AiRecordFolderController {
int count = aiRecordFolderChatService.count(new LambdaQueryWrapper<AiRecordFolderChat>()
.eq(AiRecordFolderChat::getFolderId,params.get("id").toString()));
if (count > 0){
return R.error("存在历史记录,请清空后删除");
return R.error("存在患者记录,请清空后删除");
}
aiRecordFolderService.removeById(params.get("id").toString());
return R.ok();