|
@@ -211,10 +211,9 @@ public class MarkServiceImpl implements MarkService {
|
|
@Override
|
|
@Override
|
|
public boolean applyLibrary(MarkLibrary library, Marker marker) {
|
|
public boolean applyLibrary(MarkLibrary library, Marker marker) {
|
|
// 首先判断多评情况下,同一个studentId是否已被该评卷员处理过
|
|
// 首先判断多评情况下,同一个studentId是否已被该评卷员处理过
|
|
- // if (libraryDao.countByStudentIdAndMarkerId(library.getStudentId(),
|
|
|
|
- // marker.getId()) > 0) {
|
|
|
|
- // return false;
|
|
|
|
- // }
|
|
|
|
|
|
+ if (libraryDao.countByStudentIdAndMarkerId(library.getStudentId(), marker.getId()) > 0) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
return CurrentTaskUtil.add(marker, getApplyTaskId(library));
|
|
return CurrentTaskUtil.add(marker, getApplyTaskId(library));
|
|
}
|
|
}
|
|
|
|
|