zxz 3 年之前
父节点
当前提交
3a57dc8402

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

@@ -192,7 +192,7 @@ public class TranProcessInfoServiceImpl extends ServiceImpl<TranProcessInfoMappe
                                         tranSettlementReport.setDeductionAmount("0");
                                     }
                                     else{
-                                        tranSettlementReport.setDeductionAmount(String.valueOf((Float.valueOf(tranCarInfo.getLoadNetWeight()-tranCarInfo.getUnloadNetWeight()) - (tranCarInfo.getLoadNetWeight()/1000)) * Float.valueOf(tranCarInfo.getTranPrice())));
+                                        tranSettlementReport.setDeductionAmount(String.format("%.2f",(Float.valueOf(tranCarInfo.getLoadNetWeight()-tranCarInfo.getUnloadNetWeight()) - (tranCarInfo.getLoadNetWeight()/1000)) * Float.valueOf(tranCarInfo.getTranPrice())));
                                     }
                                     tranSettlementReportService.updateById(tranSettlementReport);
                                 }