Skip to content

Commit

Permalink
fix: 修改ac变更的bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
GLaxky committed Oct 29, 2024
1 parent 1661957 commit ebcf58d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/main/java/com/softeng/dingtalk/service/PaperService.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,10 @@ public void calculateInternalPaperAc(InternalPaper internalPaper) {
log.info("论文没有处在计算ac的状态");
return;
}
if(internalPaper.hasAccepted() && !internalPaper.hasCompleteFile()) {
log.info("论文文件不完整,无法生成ac");
return;
}
// if(internalPaper.hasAccepted() && !internalPaper.hasCompleteFile()) {
// log.info("论文文件不完整,无法生成ac");
// return;
// }
// 1. 获取 paperDetails
log.info("获取 paperDetails");
var paperDetails = internalPaper.getPaperDetails();
Expand All @@ -283,7 +283,6 @@ public void calculateInternalPaperAc(InternalPaper internalPaper) {
// 4. 更新 paperDetail 对应的 AcRecord
log.info("更新 paperDetail 对应的 AcRecord");
paperDetails.forEach(paperDetail -> {
log.info("更新ac值为:"+ calculateAc(internalPaper, sum, paperDetail.getNum()));
paperDetail.setAcRecord(new AcRecord(
paperDetail.getUser(),
null,
Expand Down

0 comments on commit ebcf58d

Please sign in to comment.