zhangyuewww 2 年之前
父節點
當前提交
2f6beae104

+ 1 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/java/com/yh/saas/plugin/yiliangyiyun/service/impl/ExpenseInfoServiceImpl.java

@@ -1242,7 +1242,7 @@ public class ExpenseInfoServiceImpl extends ServiceImpl<ExpenseInfoMapper, Expen
                 Double nowCurCost = coalPaymentInfo.getCurrentAverageAllocatedCost();
                 coalPaymentInfo.setDistributableAmount(nowDisAmount + expenseInfo1.getAmountMoney());
                 coalPaymentInfo.setCurrentAverageAllocatedCost((nowCurCost*13/550*nowDisAmount +
-                        (expenseInfo1.getCoalPrice()!=null?expenseInfo1.getCoalPrice():0d)/550*expenseInfo1.getAmountMoney()) / (nowDisAmount + expenseInfo1.getAmountMoney()));
+                        (expenseInfo1.getCoalPrice()!=null?expenseInfo1.getCoalPrice():0d)*13/550*expenseInfo1.getAmountMoney()) / (nowDisAmount + expenseInfo1.getAmountMoney()));
                 coalPaymentInfoService.updateById(coalPaymentInfo);
             }
             //付款之后费用状态变成已完成