You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.1 KiB
33 lines
1.1 KiB
namespace Tiobon.Core.Services;
|
|
|
|
/// <summary>
|
|
/// 开班学员 (服务)
|
|
/// </summary>
|
|
public class Ghre_OpenClassStaffServices : BaseServices<Ghre_OpenClassStaff, Ghre_OpenClassStaffDto, InsertGhre_OpenClassStaffInput, EditGhre_OpenClassStaffInput>, IGhre_OpenClassStaffServices
|
|
{
|
|
private readonly IBaseRepository<Ghre_OpenClassStaff> _dal;
|
|
public Ghre_OpenClassStaffServices(ICaching caching, IBaseRepository<Ghre_OpenClassStaff> dal)
|
|
{
|
|
this._dal = dal;
|
|
base.BaseDal = dal;
|
|
base._caching = caching;
|
|
}
|
|
|
|
|
|
public override async Task<ServicePageResult<Ghre_OpenClassStaffDto>> QueryFilterPage(QueryBody filter, string condition, bool? IsEnable = true)
|
|
{
|
|
|
|
|
|
var result = await base.QueryFilterPage(filter, condition, IsEnable);
|
|
|
|
for (int i = 0; i < result.result.DT_TableDataT1.Count; i++)
|
|
{
|
|
var DT_TableDataT1 = result.result.DT_TableDataT1[i];
|
|
|
|
DT_TableDataT1.Source = DT_TableDataT1.Source == "Backend" ? "后台新增" : "报名";
|
|
|
|
result.result.DT_TableDataT1[i] = DT_TableDataT1;
|
|
}
|
|
return result;
|
|
}
|
|
} |