|
@@ -298,7 +298,7 @@ namespace XYY.Service.Standard.Order.FBA
|
|
|
/// <param name="otherFee"></param>
|
|
|
private async Task AddFbaHeavyCargoOtherFee(int OrderId, decimal otherFee)
|
|
|
{
|
|
|
- string sql = $@"delete FBA_Incidental where OrderId={OrderId} and FBAOtherFeeId=(select SMPOtherFeeId from FBA_OtherFee(nolock) where Name='重货优惠' )
|
|
|
+ string sql = $@"delete FBA_Incidental where OrderId={OrderId} and FBAOtherFeeId=(select Id from FBA_OtherFee(nolock) where Name='重货优惠' )
|
|
|
insert into FBA_Incidental(OrderId,CalculateType,Target,Fee,FBAOtherFeeId,CustomerRemark,JSRemark,SysncJS)
|
|
|
select {OrderId},0,0,{otherFee},Id,CustomerRemark,JSRemark,SysncJS from FBA_OtherFee(nolock) where Name='重货优惠' ";
|
|
|
await _unitOfWork.ExecuteAsync(sql);
|