|
@@ -129,9 +129,6 @@ public class MsPaperCheckService {
|
129
|
129
|
List<MsPaperCheckTeacher> teachers = msPaperCheck.getTeachers();
|
130
|
130
|
if (N_Utils.isListEmpty(teachers)) throw new ServiceException("请选择阅卷教师");
|
131
|
131
|
for (MsPaperCheckTeacher teacher : teachers) {
|
132
|
|
- if (!N_Utils.isTrueInteger(teacher.getTasknum())) {
|
133
|
|
- throw new ServiceException("请设置每位教师的阅卷任务数");
|
134
|
|
- }
|
135
|
132
|
teacher.setMpid(mpid);
|
136
|
133
|
teacher.setMblockid(mblockid);
|
137
|
134
|
teacher.setCreateid(createid);
|
|
@@ -170,7 +167,7 @@ public class MsPaperCheckService {
|
170
|
167
|
**/
|
171
|
168
|
public Map getDispenseNum(Integer mpid, Integer mblockid) {
|
172
|
169
|
MsPaperCheck check = msPaperCheckMapper.findByMBlockId(mpid, mblockid);
|
173
|
|
- Map map = msPaperCheckMapper.getDispenseNum(check.getMpid(), mblockid);
|
|
170
|
+ Map map = msPaperCheckMapper.getDispenseNum(check.getMpid(), mblockid, check.getCorrecttype());
|
174
|
171
|
if (check.getChecktype().equals(2)) {//双评,每个学生的试卷要批阅两次
|
175
|
172
|
map.put("signupnum", N_Utils.obj2Int(map.get("signupnum")) * 2);
|
176
|
173
|
map.put("commitnum", N_Utils.obj2Int(map.get("commitnum")) * 2);
|