|
@@ -192,7 +192,7 @@ public class TranProcessInfoServiceImpl extends ServiceImpl<TranProcessInfoMappe
|
|
tranSettlementReport.setDeductionAmount("0");
|
|
tranSettlementReport.setDeductionAmount("0");
|
|
}
|
|
}
|
|
else{
|
|
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);
|
|
tranSettlementReportService.updateById(tranSettlementReport);
|
|
}
|
|
}
|