diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java index 75264ffee7..5c2e5d26d4 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanFollow.java @@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import jakarta.validation.constraints.NotBlank; import lombok.Data; -import org.springframework.data.annotation.Id; import org.springframework.data.relational.core.mapping.Table; import java.io.Serializable; @@ -15,12 +14,10 @@ import java.io.Serializable; @Data public class TestPlanFollow implements Serializable { private static final long serialVersionUID = 1L; - @Id @NotBlank(message = "{test_plan_follow.test_plan_id.not_blank}", groups = {Updated.class}) @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]") private String testPlanId; - @Id @NotBlank(message = "{test_plan_follow.user_id.not_blank}", groups = {Updated.class}) @ApiModelProperty(name = "用户ID", required = true, allowableValues = "range[1, 50]") private String userId; diff --git a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java index 8a5e88ca28..24c33ee1b7 100644 --- a/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java +++ b/backend/framework/domain/src/main/java/io/metersphere/plan/domain/TestPlanPrincipal.java @@ -5,7 +5,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import jakarta.validation.constraints.NotBlank; import lombok.Data; -import org.springframework.data.annotation.Id; import org.springframework.data.relational.core.mapping.Table; import java.io.Serializable; @@ -15,12 +14,10 @@ import java.io.Serializable; @Data public class TestPlanPrincipal implements Serializable { private static final long serialVersionUID = 1L; - @Id @NotBlank(message = "{test_plan_principal.test_plan_id.not_blank}", groups = {Updated.class}) @ApiModelProperty(name = "测试计划ID", required = true, allowableValues = "range[1, 50]") private String testPlanId; - @Id @NotBlank(message = "{test_plan_principal.user_id.not_blank}", groups = {Updated.class}) @ApiModelProperty(name = "用户ID", required = true, allowableValues = "range[1, 50]") private String userId;