Commit 1225e3b7 authored by 黄奎's avatar 黄奎

页面修改

parent d75637ad
...@@ -110,5 +110,11 @@ namespace Edu.Common.Enum.Finance ...@@ -110,5 +110,11 @@ namespace Edu.Common.Enum.Finance
/// </summary> /// </summary>
[EnumField("教育留学")] [EnumField("教育留学")]
EducationStudy = 18, EducationStudy = 18,
/// <summary>
/// 试听班级
/// </summary>
[EnumField("试听班级")]
ReserveClass =19,
} }
} }
...@@ -541,7 +541,7 @@ namespace Edu.Module.Duty ...@@ -541,7 +541,7 @@ namespace Edu.Module.Duty
/// <returns></returns> /// <returns></returns>
public RB_Reserve_Class_Extend GetReserveClassModule(int ReserveClassId) public RB_Reserve_Class_Extend GetReserveClassModule(int ReserveClassId)
{ {
var extModel = reserve_ClassRepository.GetEntity<RB_Reserve_Class_Extend>(ReserveClassId); var extModel = reserve_ClassRepository.GetReserveClassListRepository(new RB_Reserve_Class_Extend() { ReserveClassId = ReserveClassId })?.FirstOrDefault();
return extModel; return extModel;
} }
......
...@@ -111,6 +111,10 @@ WHERE 1=1 ...@@ -111,6 +111,10 @@ WHERE 1=1
{ {
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Reserve_Class_Extend.School_Id), query.School_Id); builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Reserve_Class_Extend.School_Id), query.School_Id);
} }
if (query.ReserveClassId > 0)
{
builder.AppendFormat(" AND A.{0}={1} ", nameof(RB_Reserve_Class_Extend.ReserveClassId), query.ReserveClassId);
}
} }
return Get<RB_Reserve_Class_Extend>(builder.ToString(),parameters).ToList(); return Get<RB_Reserve_Class_Extend>(builder.ToString(),parameters).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