人脸识别与大模型问答

This commit is contained in:
jiang 2024-10-31 18:44:26 +08:00
parent 45ac05fc06
commit 5328298b51
2 changed files with 7 additions and 1 deletions

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.bonus</groupId>
<artifactId>bonus-modules</artifactId>
<version>24.9.0-SNAPSHOT</version>
<version>24.10.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>

View File

@ -525,6 +525,12 @@ public class DataSetServiceImpl implements DataSetService {
return AjaxResult.error("上传文件失败");
}
}
if(ObjectUtils.isEmpty(entity.getUserGuide()) || "null".equals(entity.getUserGuide())){
entity.setUserGuide(null);
}
if (ObjectUtils.isEmpty(entity.getModelAddress()) || "null".equals(entity.getModelAddress())) {
entity.setModelAddress(null);
}
int i = mapper.updateModel(entity);
return i > 0 ? AjaxResult.success("修改成功") : AjaxResult.error("修改失败");
} catch (Exception e) {