模型路径获取方法支持材料类型
This commit is contained in:
parent
1d525c3770
commit
bdd563d196
@ -58,9 +58,9 @@ public class AlgorithmModelServiceImpl extends ServiceImpl<AlgorithmModelMapper,
|
||||
// 1. 查询是否存在当前激活版本
|
||||
List<AlgorithmModel> currentModels = this.list(
|
||||
new QueryWrapper<AlgorithmModel>()
|
||||
.in("id", ids)
|
||||
.in("algorithm_model_id", ids)
|
||||
.eq("is_current", 1)
|
||||
.select("id", "model_name")
|
||||
.select("algorithm_model_id", "algorithm_type", "device_type")
|
||||
);
|
||||
// 2. 若存在激活版本,拒绝删除
|
||||
if (!currentModels.isEmpty()) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user