md
This commit is contained in:
parent
d6a9649405
commit
d29500c62a
@ -217,9 +217,11 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
|
||||
@Transactional
|
||||
public int reCalcCostFeeByBillCode(String billCode) throws EmisBizError {
|
||||
|
||||
|
||||
|
||||
EmisTmsCostProfit emisTmsCostProfit=emisTmsCostProfitMapper.selectEmisTmsCostProfitByBillCode(billCode);
|
||||
if(emisTmsCostProfit==null){
|
||||
// 初始化成本数据
|
||||
// 获取成本数据
|
||||
EmisWaybill emisWaybill=emisWaybillMapper.selectEmisWaybillByBillCode(billCode);
|
||||
emisTmsCostProfit = new EmisTmsCostProfit();
|
||||
emisTmsCostProfit.setBillCode(emisWaybill.getBillCode());
|
||||
@ -230,6 +232,7 @@ public class EmisTmsCostFeeServiceImpl implements IEmisTmsCostFeeService
|
||||
|
||||
EmisTmsCostProfit updProfit = new EmisTmsCostProfit();
|
||||
updProfit.setId(emisTmsCostProfit.getId());
|
||||
updProfit.setBillFee(emisTmsCostProfit.getBillFee());
|
||||
|
||||
// 获取成本费用
|
||||
double costFee=emisTmsCostFeeRelMapper.getCostFeeByBillCode(billCode);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user