From 90a1495b9d765c9e1d48f689dbcf977cbdb2768e Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期二, 31 十二月 2024 17:23:13 +0800 Subject: [PATCH] 模型结果修改为存在唯一索引则修改,不存在插入。避免死锁问题 --- iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/common/enums/ItemPredictStatus.java | 14 ++++---------- 1 files changed, 4 insertions(+), 10 deletions(-) diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/common/enums/ItemPredictStatus.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/common/enums/ItemPredictStatus.java index 7fae71b..b6da20e 100644 --- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/common/enums/ItemPredictStatus.java +++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mdk/common/enums/ItemPredictStatus.java @@ -1,10 +1,13 @@ package com.iailab.module.model.mdk.common.enums; -import org.jetbrains.annotations.Contract; +import lombok.AllArgsConstructor; +import lombok.Getter; /** * 预测项的预测状态 */ +@Getter +@AllArgsConstructor public enum ItemPredictStatus { PREDICTING(1), @@ -15,13 +18,4 @@ private Integer value; - @Contract(pure = true) - ItemPredictStatus(Integer value) { - this.value = value; - } - - @Contract(pure = true) - public Integer getValue() { - return value; - } } -- Gitblit v1.9.3