|
@@ -3,15 +3,14 @@ package com.xhkjedu.smarking.service.exam;
|
3
|
3
|
import com.xhkjedu.exception.ServiceException;
|
4
|
4
|
import com.xhkjedu.smarking.mapper.exam.MsSubjectMapper;
|
5
|
5
|
import com.xhkjedu.smarking.mapper.papercheck.MsPaperCheckMapper;
|
|
6
|
+import com.xhkjedu.smarking.mapper.system.UserMapper;
|
6
|
7
|
import com.xhkjedu.smarking.model.exam.MsSubject;
|
7
|
8
|
import com.xhkjedu.utils.N_Utils;
|
8
|
9
|
import org.springframework.stereotype.Service;
|
9
|
10
|
import org.springframework.transaction.annotation.Transactional;
|
10
|
11
|
|
11
|
12
|
import javax.annotation.Resource;
|
12
|
|
-import java.util.HashMap;
|
13
|
|
-import java.util.List;
|
14
|
|
-import java.util.Map;
|
|
13
|
+import java.util.*;
|
15
|
14
|
|
16
|
15
|
/**
|
17
|
16
|
* @Description 阅卷考试科目表 服务实现类
|
|
@@ -24,6 +23,8 @@ public class MsSubjectService {
|
24
|
23
|
private MsSubjectMapper msSubjectMapper;
|
25
|
24
|
@Resource
|
26
|
25
|
private MsPaperCheckMapper msPaperCheckMapper;
|
|
26
|
+ @Resource
|
|
27
|
+ private UserMapper userMapper;
|
27
|
28
|
|
28
|
29
|
|
29
|
30
|
/**
|
|
@@ -112,4 +113,31 @@ public class MsSubjectService {
|
112
|
113
|
|
113
|
114
|
msPaperCheckMapper.updateCheckStateByMsId(msid, checkstate);//更新题块阅卷状态
|
114
|
115
|
}
|
|
116
|
+
|
|
117
|
+ /**
|
|
118
|
+ * @Description 考试科目选择列表
|
|
119
|
+ * @Date 2024/12/3 11:26
|
|
120
|
+ * @Author YWX
|
|
121
|
+ * @Param [examid, handleid]
|
|
122
|
+ * @Return java.lang.Object
|
|
123
|
+ **/
|
|
124
|
+ public Object listForSel(Integer examid, Integer handleid) {
|
|
125
|
+ Integer usertype = userMapper.getUsertypeByUserid(handleid);
|
|
126
|
+ if (usertype.equals(0)) {
|
|
127
|
+ return msSubjectMapper.listSubjectNameByExamId(examid);
|
|
128
|
+ } else {
|
|
129
|
+ return new ArrayList<>();
|
|
130
|
+ }
|
|
131
|
+ }
|
|
132
|
+
|
|
133
|
+ /**
|
|
134
|
+ * @Description 单科设置信息
|
|
135
|
+ * @Date 2024/12/3 17:56
|
|
136
|
+ * @Author YWX
|
|
137
|
+ * @Param [examid, subjectid]
|
|
138
|
+ * @Return java.util.Map
|
|
139
|
+ **/
|
|
140
|
+ public Map getSet(Integer examid, String subjectid) {
|
|
141
|
+ return msSubjectMapper.getSet(examid, subjectid);
|
|
142
|
+ }
|
115
|
143
|
}
|