Commit 30626681 authored by 吴春's avatar 吴春

1

parent 6cc0ea04
......@@ -15,7 +15,7 @@ namespace Edu.Model.Entity.Sell
/// <summary>
/// 主键
/// </summary>
public int OrderIdCourse { get; set; }
public int OrderCourseId { get; set; }
/// <summary>
/// 订单编号
......
......@@ -120,6 +120,11 @@ namespace Edu.Model.ViewModel.Sell
/// 经理备注
/// </summary>
public List<RB_Order_Remark_ViewModel> DirectorRemarkList { get; set; }
/// <summary>
/// 订单课程 2024-09-02 add by:W
/// </summary>
public List<RB_Order_Course> OrderCourseList { get; set; }
/// <summary>
/// 客人列表
/// </summary>
......
This diff is collapsed.
using Edu.Model.Entity.Sell;
using Edu.Model.ViewModel.Sell;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Edu.Repository.Sell
{
/// <summary>
/// 订单课程仓储类
/// </summary>
public class RB_Order_CourseRepository : BaseRepository<RB_Order_Course>
{
/// <summary>
/// 获取列表
/// </summary>
/// <param name="demodel"></param>
/// <param name="orderIds"></param>
/// <returns></returns>
public List<RB_Order_Course> GetOrderCourseListRepository(RB_Order_Course demodel, string OrderIds)
{
string where = $@" 1=1 ";
if (demodel.Group_Id > 0)
{
where += $@" AND {nameof(RB_Order_Course.Group_Id)} ={demodel.Group_Id}";
}
if (demodel.OrderId > 0)
{
where += $@" AND {nameof(RB_Order_Course.OrderId)} ={demodel.OrderId}";
}
if (demodel.ClassId > 0)
{
where += $@" AND {nameof(RB_Order_Course.ClassId)} ={demodel.ClassId}";
}
if (!string.IsNullOrEmpty(OrderIds))
{
where += $@" AND {nameof(RB_Order_Course.OrderId)} in({OrderIds})";
}
string sql = $@" SELECT * FROM RB_Order_Course WHERE {where}";
return Get<RB_Order_Course>(sql).ToList();
}
}
}
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