This commit is contained in:
linfso 2024-10-13 20:41:01 +08:00
parent 1b063f63d9
commit d6a9649405

View File

@ -230,10 +230,11 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
EmisTmsCostProfit updProfit = new EmisTmsCostProfit();
updProfit.setId(emisTmsCostProfit.getId());
// 获取成本费用
double costFee=emisTmsCostFeeRelMapper.getCostFeeByBillCode(billCode);
updProfit.setCostFee(BigDecimal.valueOf(costFee));
updProfit.setBillProfit(updProfit.getBillFee().subtract(updProfit.getCostFee()));
updProfit.setBillProfit(emisTmsCostProfit.getBillFee().subtract(updProfit.getCostFee()));
emisTmsCostProfitMapper.updateEmisTmsCostProfit(updProfit);
log.error("==>费用计算:==>:{}: {}-{}=",billCode,updProfit.getBillFee(),updProfit.getCostFee(),updProfit.getBillProfit());