|
@@ -1904,14 +1904,16 @@ public class WmScorePackageServiceImpl extends ServiceImpl<WmScorePackageMapper,
|
|
|
long shbtgtt = 0;
|
|
|
if (StrUtil.equals(scorePackage.getPackageType1(), "1")) {
|
|
|
int score = scorePackage.getScore();
|
|
|
- yshtt = ysh * 100L / score;
|
|
|
- yshtt = yshtt > 100 ? 100 : yshtt;
|
|
|
+ if (score != 0){
|
|
|
+ yshtt = ysh * 100L / score;
|
|
|
+ yshtt = yshtt > 100 ? 100 : yshtt;
|
|
|
|
|
|
- shtgtt = shtg * 100L / score;
|
|
|
- shtgtt = shtgtt > 100 ? 100 : shtgtt;
|
|
|
+ shtgtt = shtg * 100L / score;
|
|
|
+ shtgtt = shtgtt > 100 ? 100 : shtgtt;
|
|
|
|
|
|
- shbtgtt = shbtg * 100L / score;
|
|
|
- shbtgtt = shbtgtt > 100 ? 100 : shbtgtt;
|
|
|
+ shbtgtt = shbtg * 100L / score;
|
|
|
+ shbtgtt = shbtgtt > 100 ? 100 : shbtgtt;
|
|
|
+ }
|
|
|
} else {
|
|
|
int score = scorePackage.getUserNum() * scorePackage.getTaskNum();
|
|
|
yshtt = yshnum * 100 / score;
|