Commit 9749668e authored by 吴春's avatar 吴春

提交代码

parent 94eb1ea2
......@@ -1265,7 +1265,9 @@ namespace Edu.Module.Course
#region 更新甲鹤小程序规格对应的库存
if (flag && orderModel.JoinType != OrderJoinTypeEnum.RenewOrder)//续费订单不去更新规格库存
{
System.Threading.Tasks.Task.Run(() => UpdateCancelClassOrder(orderModel));
List<int> classId = new List<int>();
classId.Add(orderModel.ClassId);
System.Threading.Tasks.Task.Run(() => UpdateGoodsSpecification(classId));
}
#endregion
}
......@@ -3188,7 +3190,7 @@ namespace Edu.Module.Course
IsPublic = 1,
BType = 1,//item.AccountType,
AccountId = financeConfig?.ClientID ?? 54,
WBMoney = Convert.ToDecimal(demodel.PreferPrice) ,
WBMoney = Convert.ToDecimal(demodel.PreferPrice),
TradeDate = System.DateTime.Now.AddDays(-1).ToString("yyyy-MM-dd"),
AccountNumber = System.DateTime.Now.AddDays(-1).ToString("yyyyMMdd"),
TemplateId = financeConfig?.TempleteId ?? 139,
......@@ -3292,7 +3294,7 @@ namespace Edu.Module.Course
{
{ nameof(RB_Goods_SpecificationPrice_Extend.InventoryNum),item.ClassPersion-item.OrderStudentCount},
};
flag = classRepository.Update(fileds, new WhereHelper(nameof(RB_Goods_SpecificationPrice_Extend.Id), priceModel.Id));
flag = goods_SpecificationPriceRepository.Update(fileds, new WhereHelper(nameof(RB_Goods_SpecificationPrice_Extend.Id), priceModel.Id));
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment