Skip to content

Commit

Permalink
fix: 添加ac变更的log细节.
Browse files Browse the repository at this point in the history
  • Loading branch information
GLaxky committed Oct 29, 2024
1 parent e696839 commit 6bacd97
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/softeng/dingtalk/service/PaperService.java
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ public double calculateWeightOfAc(InternalPaper internalPaper) {
public double calculateAc(InternalPaper internalPaper, double sum, int rank) {
// 论文中止时,只有第一作者扣分
double flagForSuspend = (internalPaper.getResult() == InternalPaper.SUSPEND && rank == 1) ? 1.0 : 0.0;

log.info("计算过程");
log.info("internalPaper: " + internalPaper);
log.info("calculateWeightOfAc(internalPaper) :" + calculateWeightOfAc(internalPaper));
log.info("calculateRatioOfAc(rank): " + calculateRatioOfAc(rank));
log.info("flagForSuspend: " + flagForSuspend);
return calculateWeightOfAc(internalPaper) * calculateRatioOfAc(rank) * sum * flagForSuspend;
}

Expand Down

0 comments on commit 6bacd97

Please sign in to comment.