Commit e9af77f6 authored by 黄奎's avatar 黄奎

页面修改

parent 2fda7a7f
......@@ -143,5 +143,10 @@ namespace Edu.Model.Entity.Course
/// 更新时间
/// </summary>
public DateTime UpdateTime { get; set; }
/// <summary>
/// 续费订单号
/// </summary>
public int RenewOrderId { get; set; }
}
}
......@@ -1027,19 +1027,30 @@ namespace Edu.Module.Course
guestModel.Id = newGuestId;
flag = newGuestId > 0;
}
if (flag)
{
Dictionary<string, object> orderFileds = new Dictionary<string, object>()
{
{nameof(RB_Order.RenewOrderId), newOrderId}
};
flag = orderRepository.Update(orderFileds, new WhereHelper(nameof(RB_Order.OrderId), orderId));
}
return flag;
}
/// <summary>
/// 获取续费课程列表
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="rowsCount"></param>
/// <param name="query"></param>
/// <param name="oldClassId"></param>
/// <returns></returns>
public List<object> GetRenewClassModule(int pageIndex,int pageSize,out long rowsCount, RB_Class_ViewModel query)
public List<object> GetRenewClassModule(int pageIndex, int pageSize, out long rowsCount, RB_Class_ViewModel query)
{
List<object> list = new List<object>();
var classList = classModule.GetClassPageListModule(pageIndex, pageSize, out rowsCount, query);
var classList = classModule.GetClassPageListModule(pageIndex, pageSize, out rowsCount, query, isGetStepPrice: true);
foreach (var item in classList)
{
var obj = new
......@@ -1050,12 +1061,13 @@ namespace Edu.Module.Course
item.ClassHours,
item.TeacherName,
item.RoomName,
OpenTime=Common.ConvertHelper.FormatDate(item.OpenTime),
OpenTime = Common.ConvertHelper.FormatDate(item.OpenTime),
item.OriginalPrice,
item.SellPrice,
item.ClassPersion,
item.OrderStudentCount,
item.ClassStepPriceList
item.ClassStepPriceList,
item.InnerRemark
};
list.Add(obj);
}
......
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