模型路径获取方法支持材料类型

This commit is contained in:
wanxiaoli 2026-03-18 10:12:55 +08:00
parent 1d525c3770
commit bdd563d196

View File

@ -58,9 +58,9 @@ public class AlgorithmModelServiceImpl extends ServiceImpl<AlgorithmModelMapper,
// 1. 查询是否存在当前激活版本 // 1. 查询是否存在当前激活版本
List<AlgorithmModel> currentModels = this.list( List<AlgorithmModel> currentModels = this.list(
new QueryWrapper<AlgorithmModel>() new QueryWrapper<AlgorithmModel>()
.in("id", ids) .in("algorithm_model_id", ids)
.eq("is_current", 1) .eq("is_current", 1)
.select("id", "model_name") .select("algorithm_model_id", "algorithm_type", "device_type")
); );
// 2. 若存在激活版本拒绝删除 // 2. 若存在激活版本拒绝删除
if (!currentModels.isEmpty()) { if (!currentModels.isEmpty()) {