|
|
@@ -69,7 +69,7 @@ public class PtServiceLogStatisServiceImpl implements IPtServiceLogStatisService
|
|
|
|
|
|
ptServiceLogStatisVos.forEach(v -> {
|
|
|
if (StringUtils.isNotNull(v.getStatisNum())) {
|
|
|
- v.setRate(Arith.div(Arith.mul(v.getStatisNumTrue(), 100), v.getStatisNum()));
|
|
|
+ v.setRate(Arith.div(Arith.mul(v.getStatisNumTrue(), 100), v.getStatisNum(), 0));
|
|
|
if (v.getRate() >= 90) {
|
|
|
v.setRateLv("优");
|
|
|
} else if (v.getRate() >= 80 && v.getRate() < 90) {
|
|
|
@@ -84,4 +84,24 @@ public class PtServiceLogStatisServiceImpl implements IPtServiceLogStatisService
|
|
|
|
|
|
return ptServiceLogStatisVos;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public List<PtServiceLogStatisVo> selectMdEfficiency(MdModelInfo modelInfo) {
|
|
|
+ List<PtServiceLogStatisVo> ptServiceLogStatisVos = ptServiceLogStatisMapper.selectMdEfficiency(modelInfo);
|
|
|
+ ptServiceLogStatisVos.forEach(v -> {
|
|
|
+ if (StringUtils.isNotNull(v.getStatisNum())) {
|
|
|
+ v.setRate(Arith.div(v.getExecTm(), v.getStatisNum(), 0));
|
|
|
+ if (v.getRate() >= 6000) {
|
|
|
+ v.setRateLv("差");
|
|
|
+ } else if (v.getRate() >= 3000 && v.getRate() < 6000) {
|
|
|
+ v.setRateLv("中");
|
|
|
+ } else if (v.getRate() >= 1000 && v.getRate() < 3000) {
|
|
|
+ v.setRateLv("高");
|
|
|
+ } else if (v.getRate() < 1000) {
|
|
|
+ v.setRateLv("优");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ return ptServiceLogStatisVos;
|
|
|
+ }
|
|
|
}
|