|
|
|
@@ -180,7 +180,7 @@ public class WxOfflineActivityGrantSettlementServiceImpl implements WxOfflineAct |
|
|
|
private String getPercentage(BigDecimal yes, BigDecimal yesYes){ |
|
|
|
|
|
|
|
String percentage = "--"; |
|
|
|
if(yes.compareTo(BigDecimal.ZERO) > 0){ |
|
|
|
if(yesYes.compareTo(BigDecimal.ZERO) > 0){ |
|
|
|
BigDecimal count = yes.subtract(yesYes); |
|
|
|
percentage = count.divide(yesYes,2,BigDecimal.ROUND_HALF_UP).toString(); |
|
|
|
} |
|
|
|
@@ -192,7 +192,7 @@ public class WxOfflineActivityGrantSettlementServiceImpl implements WxOfflineAct |
|
|
|
nf.setMinimumFractionDigits(2); |
|
|
|
|
|
|
|
String percentage = "--"; |
|
|
|
if(yes > 0){ |
|
|
|
if(yesYes > 0){ |
|
|
|
Integer count = yes - yesYes; |
|
|
|
percentage = nf.format(count.doubleValue() / new Double(yesYes).doubleValue()); |
|
|
|
} |
|
|
|
|