|
@@ -571,7 +571,8 @@ public class MarkServiceImpl implements MarkService {
|
|
|
*/
|
|
|
private boolean submitLibrary(MarkLibrary library, Marker marker, MarkGroup group, MarkResult result) {
|
|
|
// 非本人领取的待评任务
|
|
|
- if (library.getStatus() == LibraryStatus.WAITING && !hasApplied(library, marker)) {
|
|
|
+ if ((library.getStatus() == LibraryStatus.WAITING || library.getStatus() == LibraryStatus.REJECTED)
|
|
|
+ && !hasApplied(library, marker)) {
|
|
|
return false;
|
|
|
}
|
|
|
// 非本人的回评任务
|
|
@@ -588,7 +589,7 @@ public class MarkServiceImpl implements MarkService {
|
|
|
Date now = new Date();
|
|
|
if (libraryDao.updateMarkerResult(library.getId(), LibraryStatus.MARKED, marker.getId(),
|
|
|
result.getMarkerScore(), result.getScoreList(), now, result.getSpent(), LibraryStatus.WAITING,
|
|
|
- LibraryStatus.MARKED, LibraryStatus.INSPECTED) == 0) {
|
|
|
+ LibraryStatus.MARKED, LibraryStatus.INSPECTED, LibraryStatus.REJECTED) == 0) {
|
|
|
// 条件不符更新失败,直接返回
|
|
|
return false;
|
|
|
}
|
|
@@ -1413,9 +1414,10 @@ public class MarkServiceImpl implements MarkService {
|
|
|
markerScoreList.append(",");
|
|
|
}
|
|
|
}
|
|
|
- libraryDao.updateMarkerResult(library.getId(), LibraryStatus.REJECTED, null, null,
|
|
|
- markerScoreList.toString(), null, null, LibraryStatus.MARKED);
|
|
|
- count++;
|
|
|
+ if (libraryDao.updateMarkerResult(library.getId(), LibraryStatus.REJECTED, null, null,
|
|
|
+ markerScoreList.toString(), null, null, LibraryStatus.MARKED) == 1) {
|
|
|
+ count++;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (count > 0) {
|