From 9cb0e31627c5050991940d149affc2dbdd86c833 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期四, 15 六月 2023 11:57:47 +0800 Subject: [PATCH] 多选部门标签 --- src/main/java/com/mindskip/xzs/viewmodel/admin/exam/ExamPaperEditRequestVM.java | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/viewmodel/admin/exam/ExamPaperEditRequestVM.java b/src/main/java/com/mindskip/xzs/viewmodel/admin/exam/ExamPaperEditRequestVM.java index f46f888..8300db8 100644 --- a/src/main/java/com/mindskip/xzs/viewmodel/admin/exam/ExamPaperEditRequestVM.java +++ b/src/main/java/com/mindskip/xzs/viewmodel/admin/exam/ExamPaperEditRequestVM.java @@ -2,6 +2,9 @@ +import com.mindskip.xzs.domain.ExamPaperDepartment; +import com.mindskip.xzs.domain.ExamPaperSubject; + import javax.validation.Valid; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; @@ -11,10 +14,10 @@ public class ExamPaperEditRequestVM { private Integer id; - @NotNull +// @NotNull private Integer level; - @NotNull - private Integer subjectId; +// @NotNull + private Integer[] subjectId; @NotNull private Integer paperType; @NotBlank @@ -29,6 +32,10 @@ private List<ExamPaperTitleItemVM> titleItems; private String score; + + //閮ㄩ棬ids + private Integer[] departmentIds; + public Integer getId() { return id; @@ -46,11 +53,11 @@ this.level = level; } - public Integer getSubjectId() { + public Integer[] getSubjectId() { return subjectId; } - public void setSubjectId(Integer subjectId) { + public void setSubjectId(Integer[] subjectId) { this.subjectId = subjectId; } @@ -101,4 +108,13 @@ public void setScore(String score) { this.score = score; } + + public Integer[] getDepartmentIds() { + return departmentIds; + } + + public void setDepartmentIds(Integer[] departmentIds) { + this.departmentIds = departmentIds; + } + } -- Gitblit v1.8.0