This commit is contained in:
linfso 2025-07-04 12:45:40 +08:00
parent e7e28a440f
commit 9803b59532

View File

@ -662,6 +662,8 @@ public class EmisTmsCostFeeServiceImpl extends EmisBaseService implements IEmisT
@Override
public int reCalcCostFeeAll(String costNo) throws EmisBizError {
long start = System.currentTimeMillis();
List<CostFeeWaybillRel> listBillCodeRel=emisTmsCostFeeMapper.selectCostFeeRelListByCostNo(costNo);
if(CollectionUtil.isEmpty(listBillCodeRel)){
throw new EmisBizError(EmisBizErrorType.FAIL,"子运单数量为空,请检查");
@ -696,6 +698,9 @@ public class EmisTmsCostFeeServiceImpl extends EmisBaseService implements IEmisT
mergeCostFeeByBillCode(billCodeItem.getBillCode());
}
long end = System.currentTimeMillis();
log.info("==reCalcCostFeeAll==> escape time:" + (end - start) + "ms");
return 1;
}
@ -1034,8 +1039,7 @@ public class EmisTmsCostFeeServiceImpl extends EmisBaseService implements IEmisT
updProfit.setBillProfit(emisTmsCostProfit.getBillFee().subtract(updProfit.getCostFee()));
emisTmsCostProfitMapper.updateEmisTmsCostProfit(updProfit);
log.info("==>费用计算:==>:{}:{}-{}=",mainBillCode+":"+billCode,updProfit.getBillFee(),updProfit.getCostFee(),updProfit.getBillProfit());
// log.info("==>费用计算:==>:{}:{}-{}={}",mainBillCode+":"+billCode,updProfit.getBillFee(),updProfit.getCostFee(),updProfit.getBillProfit());
return 1;
}