Commit 45cef612 authored by 廖旭伟's avatar 廖旭伟

绩效分数汇总bug修改

parent f53c52ed
......@@ -261,8 +261,11 @@ public class CheckAttendRecordServiceImpl extends AbstractCRUDServiceImpl<CheckA
BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore());
erro = erro.add(staffPerformSummaryEntity.getAttendScore());
BigDecimal Score100 = new BigDecimal(100);
erro = erro.add(Score100.subtract(staffPerformSummaryEntity.getOtherScore()));
if(staffPerformSummaryEntity.getOtherScore().compareTo(BigDecimal.ZERO)!=0){
BigDecimal Score100 = new BigDecimal(100);
BigDecimal otherScoreErro = Score100.subtract(staffPerformSummaryEntity.getOtherScore());
erro = erro.add(BigDecimal.ZERO.subtract(otherScoreErro));
}
erro = erro.add(staffPerformSummaryEntity.getGoworkScore());
erro = erro.add(staffPerformSummaryEntity.getEffectScore());
erro = erro.add(staffPerformSummaryEntity.getComplainScore());
......
......@@ -228,8 +228,11 @@ public class CheckComplainRecordServiceImpl extends AbstractCRUDServiceImpl<Chec
BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore());
erro = erro.add(staffPerformSummaryEntity.getAttendScore());
BigDecimal Score100 = new BigDecimal(100);
erro = erro.add(Score100.subtract(staffPerformSummaryEntity.getOtherScore()));
if(staffPerformSummaryEntity.getOtherScore().compareTo(BigDecimal.ZERO)!=0){
BigDecimal Score100 = new BigDecimal(100);
BigDecimal otherScoreErro = Score100.subtract(staffPerformSummaryEntity.getOtherScore());
erro = erro.add(BigDecimal.ZERO.subtract(otherScoreErro));
}
erro = erro.add(staffPerformSummaryEntity.getGoworkScore());
erro = erro.add(staffPerformSummaryEntity.getEffectScore());
erro = erro.add(staffPerformSummaryEntity.getComplainScore());
......
......@@ -253,8 +253,11 @@ public class CheckEffectRecordServiceImpl extends AbstractCRUDServiceImpl<CheckE
BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore());
erro = erro.add(staffPerformSummaryEntity.getAttendScore());
BigDecimal Score100 = new BigDecimal(100);
erro = erro.add(Score100.subtract(staffPerformSummaryEntity.getOtherScore()));
if(staffPerformSummaryEntity.getOtherScore().compareTo(BigDecimal.ZERO)!=0){
BigDecimal Score100 = new BigDecimal(100);
BigDecimal otherScoreErro = Score100.subtract(staffPerformSummaryEntity.getOtherScore());
erro = erro.add(BigDecimal.ZERO.subtract(otherScoreErro));
}
erro = erro.add(staffPerformSummaryEntity.getGoworkScore());
erro = erro.add(staffPerformSummaryEntity.getEffectScore());
erro = erro.add(staffPerformSummaryEntity.getComplainScore());
......
......@@ -250,8 +250,11 @@ public class CheckGoworkRecordServiceImpl extends AbstractCRUDServiceImpl<CheckG
BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore());
erro = erro.add(staffPerformSummaryEntity.getAttendScore());
BigDecimal Score100 = new BigDecimal(100);
erro = erro.add(Score100.subtract(staffPerformSummaryEntity.getOtherScore()));
if(staffPerformSummaryEntity.getOtherScore().compareTo(BigDecimal.ZERO)!=0){
BigDecimal Score100 = new BigDecimal(100);
BigDecimal otherScoreErro = Score100.subtract(staffPerformSummaryEntity.getOtherScore());
erro = erro.add(BigDecimal.ZERO.subtract(otherScoreErro));
}
erro = erro.add(staffPerformSummaryEntity.getGoworkScore());
erro = erro.add(staffPerformSummaryEntity.getEffectScore());
erro = erro.add(staffPerformSummaryEntity.getComplainScore());
......
......@@ -234,8 +234,7 @@ public class CheckOtherRecordServiceImpl extends AbstractCRUDServiceImpl<CheckOt
BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore());
erro = erro.add(staffPerformSummaryEntity.getAttendScore());
BigDecimal Score100 = new BigDecimal(100);
erro = erro.add(Score100.subtract(staffPerformSummaryEntity.getOtherScore()));
erro = erro.add(staffPerformSummaryEntity.getOtherScore());
erro = erro.add(staffPerformSummaryEntity.getGoworkScore());
erro = erro.add(staffPerformSummaryEntity.getEffectScore());
erro = erro.add(staffPerformSummaryEntity.getComplainScore());
......
......@@ -255,8 +255,11 @@ public class CheckReviewRecordServiceImpl extends AbstractCRUDServiceImpl<CheckR
BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore());
erro = erro.add(staffPerformSummaryEntity.getAttendScore());
BigDecimal Score100 = new BigDecimal(100);
erro = erro.add(Score100.subtract(staffPerformSummaryEntity.getOtherScore()));
if(staffPerformSummaryEntity.getOtherScore().compareTo(BigDecimal.ZERO)!=0){
BigDecimal Score100 = new BigDecimal(100);
BigDecimal otherScoreErro = Score100.subtract(staffPerformSummaryEntity.getOtherScore());
erro = erro.add(BigDecimal.ZERO.subtract(otherScoreErro));
}
erro = erro.add(staffPerformSummaryEntity.getGoworkScore());
erro = erro.add(staffPerformSummaryEntity.getEffectScore());
erro = erro.add(staffPerformSummaryEntity.getComplainScore());
......
......@@ -127,8 +127,11 @@ public class CheckWindowWorkmanPerformServiceImpl extends AbstractCRUDServiceImp
BigDecimal erro = new BigDecimal(0);
erro = erro.add(staffPerformSummaryEntity.getReviewScore());
erro = erro.add(staffPerformSummaryEntity.getAttendScore());
BigDecimal Score100 = new BigDecimal(100);
erro = erro.add(Score100.subtract(staffPerformSummaryEntity.getOtherScore()));
if(staffPerformSummaryEntity.getOtherScore().compareTo(BigDecimal.ZERO)!=0){
BigDecimal Score100 = new BigDecimal(100);
BigDecimal otherScoreErro = Score100.subtract(staffPerformSummaryEntity.getOtherScore());
erro = erro.add(BigDecimal.ZERO.subtract(otherScoreErro));
}
erro = erro.add(staffPerformSummaryEntity.getGoworkScore());
erro = erro.add(staffPerformSummaryEntity.getEffectScore());
erro = erro.add(staffPerformSummaryEntity.getComplainScore());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment