Commit c92c928c authored by liudong1993's avatar liudong1993

学生名单

parent 938f5867
...@@ -21,6 +21,11 @@ namespace Edu.Model.Entity.Course ...@@ -21,6 +21,11 @@ namespace Edu.Model.Entity.Course
/// </summary> /// </summary>
public int OrderId { get; set; } public int OrderId { get; set; }
/// <summary>
/// 班级id
/// </summary>
public int ClassId { get; set; }
/// <summary> /// <summary>
/// 客人名称 /// 客人名称
/// </summary> /// </summary>
......
...@@ -31,6 +31,11 @@ namespace Edu.Model.Entity.Course ...@@ -31,6 +31,11 @@ namespace Edu.Model.Entity.Course
/// </summary> /// </summary>
public string Content { get; set; } public string Content { get; set; }
/// <summary>
/// 创建人
/// </summary>
public int CreateBy { get; set; }
/// <summary> /// <summary>
/// 创建时间 /// 创建时间
/// </summary> /// </summary>
......
...@@ -9,6 +9,9 @@ namespace Edu.Model.ViewModel.Course ...@@ -9,6 +9,9 @@ namespace Edu.Model.ViewModel.Course
[Serializable] [Serializable]
public class RB_Order_Guest_ViewModel : Model.Entity.Course.RB_Order_Guest public class RB_Order_Guest_ViewModel : Model.Entity.Course.RB_Order_Guest
{ {
/// <summary>
/// 订单ids
/// </summary>
public string OrderIds { get; set; }
} }
} }
\ No newline at end of file
using System;
using System.Collections.Generic;
namespace Edu.Model.ViewModel.Course
{
/// <summary>
/// 订单实体类
/// </summary>
[Serializable]
public class RB_Order_Remark_ViewModel : Model.Entity.Course.RB_Order_Remark
{
}
}
\ No newline at end of file
...@@ -33,5 +33,26 @@ namespace Edu.Model.ViewModel.Course ...@@ -33,5 +33,26 @@ namespace Edu.Model.ViewModel.Course
/// 排序 /// 排序
/// </summary> /// </summary>
public int Q_OrderBy { get; set; } public int Q_OrderBy { get; set; }
/// <summary>
/// 销售备注
/// </summary>
public List<RB_Order_Remark_ViewModel> SaleRemarkList { get; set; }
/// <summary>
/// 教务备注
/// </summary>
public List<RB_Order_Remark_ViewModel> TeacherRemarkList { get; set; }
/// <summary>
/// 校长备注
/// </summary>
public List<RB_Order_Remark_ViewModel> RectorRemarkList { get; set; }
/// <summary>
/// 经理备注
/// </summary>
public List<RB_Order_Remark_ViewModel> DirectorRemarkList { get; set; }
/// <summary>
/// 客人列表
/// </summary>
public List<RB_Order_Guest_ViewModel> GuestList { get; set; }
} }
} }
\ No newline at end of file
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Edu.Aop\Edu.Aop.csproj" /> <ProjectReference Include="..\Edu.Aop\Edu.Aop.csproj" />
<ProjectReference Include="..\Edu.Cache\Edu.Cache.csproj" />
<ProjectReference Include="..\Edu.Common\Edu.Common.csproj" /> <ProjectReference Include="..\Edu.Common\Edu.Common.csproj" />
<ProjectReference Include="..\Edu.Model\Edu.Model.csproj" /> <ProjectReference Include="..\Edu.Model\Edu.Model.csproj" />
<ProjectReference Include="..\Edu.Repository\Edu.Repository.csproj" /> <ProjectReference Include="..\Edu.Repository\Edu.Repository.csproj" />
......
This diff is collapsed.
...@@ -34,6 +34,14 @@ namespace Edu.Repository.Course ...@@ -34,6 +34,14 @@ namespace Edu.Repository.Course
{ {
where += $@" and {nameof(RB_Order_Guest_ViewModel.OrderId)} ={demodel.OrderId}"; where += $@" and {nameof(RB_Order_Guest_ViewModel.OrderId)} ={demodel.OrderId}";
} }
if (demodel.ClassId > 0)
{
where += $@" and {nameof(RB_Order_Guest_ViewModel.ClassId)} ={demodel.ClassId}";
}
if (!string.IsNullOrEmpty(demodel.OrderIds))
{
where += $@" and {nameof(RB_Order_Guest_ViewModel.OrderId)} in({demodel.OrderIds})";
}
if (!string.IsNullOrEmpty(demodel.GuestName)) if (!string.IsNullOrEmpty(demodel.GuestName))
{ {
where += $@" and {nameof(RB_Order_Guest_ViewModel.GuestName)} like '%{demodel.GuestName}%'"; where += $@" and {nameof(RB_Order_Guest_ViewModel.GuestName)} like '%{demodel.GuestName}%'";
...@@ -56,7 +64,7 @@ namespace Edu.Repository.Course ...@@ -56,7 +64,7 @@ namespace Edu.Repository.Course
/// <param name="demodel"></param> /// <param name="demodel"></param>
/// <param name="orderIds"></param> /// <param name="orderIds"></param>
/// <returns></returns> /// <returns></returns>
public List<RB_Order_Guest_ViewModel> GetClassPageListRepository(int pageIndex, int pageSize, out long rowsCount, RB_Order_Guest_ViewModel demodel) public List<RB_Order_Guest_ViewModel> GetPageList(int pageIndex, int pageSize, out long rowsCount, RB_Order_Guest_ViewModel demodel)
{ {
string where = $@" 1=1 and Status=0"; string where = $@" 1=1 and Status=0";
if (demodel.Group_Id > 0) if (demodel.Group_Id > 0)
...@@ -71,6 +79,10 @@ namespace Edu.Repository.Course ...@@ -71,6 +79,10 @@ namespace Edu.Repository.Course
{ {
where += $@" and {nameof(RB_Order_Guest_ViewModel.OrderId)} ={demodel.OrderId}"; where += $@" and {nameof(RB_Order_Guest_ViewModel.OrderId)} ={demodel.OrderId}";
} }
if (demodel.ClassId > 0)
{
where += $@" and {nameof(RB_Order_Guest_ViewModel.ClassId)} ={demodel.ClassId}";
}
if (!string.IsNullOrEmpty(demodel.GuestName)) if (!string.IsNullOrEmpty(demodel.GuestName))
{ {
where += $@" and {nameof(RB_Order_Guest_ViewModel.GuestName)} like '%{demodel.GuestName}%'"; where += $@" and {nameof(RB_Order_Guest_ViewModel.GuestName)} like '%{demodel.GuestName}%'";
......
...@@ -19,7 +19,7 @@ namespace Edu.Repository.Course ...@@ -19,7 +19,7 @@ namespace Edu.Repository.Course
/// <param name="demodel"></param> /// <param name="demodel"></param>
/// <param name="orderIds"></param> /// <param name="orderIds"></param>
/// <returns></returns> /// <returns></returns>
public List<RB_Order_Remark> GetList(RB_Order_Remark demodel,string orderIds) public List<RB_Order_Remark_ViewModel> GetList(RB_Order_Remark_ViewModel demodel,string orderIds)
{ {
string where = $@" 1=1"; string where = $@" 1=1";
...@@ -37,7 +37,7 @@ namespace Edu.Repository.Course ...@@ -37,7 +37,7 @@ namespace Edu.Repository.Course
} }
string sql = $@" select * from RB_Order_Remark where {where}"; string sql = $@" select * from RB_Order_Remark where {where}";
return Get<RB_Order_Remark>(sql).ToList(); return Get<RB_Order_Remark_ViewModel>(sql).ToList();
} }
/// <summary> /// <summary>
...@@ -49,7 +49,7 @@ namespace Edu.Repository.Course ...@@ -49,7 +49,7 @@ namespace Edu.Repository.Course
/// <param name="demodel"></param> /// <param name="demodel"></param>
/// <param name="orderIds"></param> /// <param name="orderIds"></param>
/// <returns></returns> /// <returns></returns>
public List<RB_Order_Remark> GetPageList(int pageIndex, int pageSize, out long rowsCount, RB_Order_Remark demodel, string orderIds) public List<RB_Order_Remark_ViewModel> GetPageList(int pageIndex, int pageSize, out long rowsCount, RB_Order_Remark_ViewModel demodel, string orderIds)
{ {
string where = $@" 1=1"; string where = $@" 1=1";
...@@ -67,7 +67,7 @@ namespace Edu.Repository.Course ...@@ -67,7 +67,7 @@ namespace Edu.Repository.Course
} }
string sql = $@" select * from RB_Order_Remark where {where}"; string sql = $@" select * from RB_Order_Remark where {where}";
return GetPage<RB_Order_Remark>(pageIndex, pageSize, out rowsCount, sql).ToList(); return GetPage<RB_Order_Remark_ViewModel>(pageIndex, pageSize, out rowsCount, 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