Browse Source

优化欠费缴费支持小数点问题

wuxw 3 years ago
parent
commit
df658b3002

+ 8 - 1
service-fee/src/main/java/com/java110/fee/bmo/impl/QueryOweFeeImpl.java

@@ -93,7 +93,14 @@ public class QueryOweFeeImpl implements IQueryOweFee {
             try {
                 computeFeeSMOImpl.computeEveryOweFee(tmpFeeDto);//计算欠费金额
                 //如果金额为0 就排除
-                //if (tmpFeeDto.getFeePrice() > 0 && tmpFeeDto.getEndTime().getTime() <= DateUtil.getCurrentDate().getTime()) {
+                tmpFeeDto.setFeeTotalPrice(
+                        MoneyUtil.computePriceScale(
+                                tmpFeeDto.getFeePrice(),
+                                tmpFeeDto.getScale(),
+                                Integer.parseInt(tmpFeeDto.getDecimalPlace())
+                        )
+                );
+
                 tmpFeeDto.setVal(val);
                 if (tmpFeeDto.getFeePrice() > 0) {
                     tmpFeeDtos.add(tmpFeeDto);