From c50e176c4a6b9331d2d1c0520bafb18f54f0dee6 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期五, 08 三月 2024 17:35:10 +0800 Subject: [PATCH] 部门增加管理员 --- src/main/java/com/mindskip/xzs/viewmodel/admin/exam/ExamPaperEditRequestVM.java | 128 ++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 122 insertions(+), 6 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..570771a 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 @@ -1,20 +1,21 @@ package com.mindskip.xzs.viewmodel.admin.exam; - import javax.validation.Valid; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; +import java.util.Arrays; import java.util.List; +import java.util.Map; 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 +30,25 @@ private List<ExamPaperTitleItemVM> titleItems; private String score; + + //閮ㄩ棬ids + private Integer[] departmentIds; + + private Integer[] userIds; + + private Map<Integer,Integer> subjectSource; + + //闅忔満璇曞嵎鍚勪釜鏍囩棰樺瀷鏁伴噺 + private List<QuestionTypeVM> questionTypeVMS; + + private Integer aggregateSource; + + private Integer[][] userId; + private String type; + private String status; + private String menuIds; + + public Integer getId() { return id; @@ -46,11 +66,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 +121,100 @@ public void setScore(String score) { this.score = score; } + + public Integer[] getDepartmentIds() { + return departmentIds; + } + + public void setDepartmentIds(Integer[] departmentIds) { + this.departmentIds = departmentIds; + } + + public Map<Integer, Integer> getSubjectSource() { + return subjectSource; + } + + public void setSubjectSource(Map<Integer, Integer> subjectSource) { + this.subjectSource = subjectSource; + } + + public Integer getAggregateSource() { + return aggregateSource; + } + + public void setAggregateSource(Integer aggregateSource) { + this.aggregateSource = aggregateSource; + } + + public List<QuestionTypeVM> getQuestionTypeVMS() { + return questionTypeVMS; + } + + public void setQuestionTypeVMS(List<QuestionTypeVM> questionTypeVMS) { + this.questionTypeVMS = questionTypeVMS; + } + + public Integer[] getUserIds() { + return userIds; + } + + public void setUserIds(Integer[] userIds) { + this.userIds = userIds; + } + + public Integer[][] getUserId() { + return userId; + } + + public void setUserId(Integer[][] userId) { + this.userId = userId; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getMenuIds() { + return menuIds; + } + + public void setMenuIds(String menuIds) { + this.menuIds = menuIds; + } + + @Override + public String toString() { + return "ExamPaperEditRequestVM{" + + "id=" + id + + ", level=" + level + + ", subjectId=" + Arrays.toString(subjectId) + + ", paperType=" + paperType + + ", name='" + name + '\'' + + ", suggestTime=" + suggestTime + + ", limitDateTime=" + limitDateTime + + ", titleItems=" + titleItems + + ", score='" + score + '\'' + + ", departmentIds=" + Arrays.toString(departmentIds) + + ", userIds=" + Arrays.toString(userIds) + + ", subjectSource=" + subjectSource + + ", questionTypeVMS=" + questionTypeVMS + + ", aggregateSource=" + aggregateSource + + ", userId=" + Arrays.toString(userId) + + ", type='" + type + '\'' + + ", status='" + status + '\'' + + ", menuIds='" + menuIds + '\'' + + '}'; + } } -- Gitblit v1.8.0