From 338f2f5afc7762dabf2409f296d5d023462ed4b5 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期四, 28 八月 2025 17:18:25 +0800
Subject: [PATCH] 部分新功能

---
 multi-system/src/main/java/com/gkhy/exam/system/domain/QualitySystemPlan.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/multi-system/src/main/java/com/gkhy/exam/system/domain/QualitySystemPlan.java b/multi-system/src/main/java/com/gkhy/exam/system/domain/QualitySystemPlan.java
index c000101..9224bec 100644
--- a/multi-system/src/main/java/com/gkhy/exam/system/domain/QualitySystemPlan.java
+++ b/multi-system/src/main/java/com/gkhy/exam/system/domain/QualitySystemPlan.java
@@ -9,6 +9,7 @@
 import lombok.Getter;
 import lombok.Setter;
 
+import javax.validation.constraints.NotNull;
 import java.io.Serializable;
 import java.time.LocalDateTime;
 import java.util.List;
@@ -23,7 +24,8 @@
     @TableId(value = "id", type = IdType.AUTO)
     private Integer id;
 
-    @ApiModelProperty(value = "企业ID")
+    @NotNull(message = "企业id不可为空")
+    @ApiModelProperty(value = "企业ID",required = true)
     @TableField("company_id")
     private Integer companyId;
 
@@ -31,7 +33,8 @@
     @TableField(exist = false)
     private String companyName;
 
-    @ApiModelProperty(value = "年份")
+    @NotNull(message = "年份不可为空")
+    @ApiModelProperty(value = "年份",required = true)
     @TableField("year")
     private String year;
 

--
Gitblit v1.9.2