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.
 
 
 
Tiobon.Web.Core/Tiobon.Core.Services/Ghrh/Ghrh_YearHumanApplyOrderSer...

27 lines
1.2 KiB

namespace Tiobon.Core.Services;
/// <summary>
/// 年度人力申请 (服务)
/// </summary>
public class Ghrh_YearHumanApplyOrderServices : BaseServices<Ghrh_YearHumanApplyOrder, Ghrh_YearHumanApplyOrderDto, InsertGhrh_YearHumanApplyOrderInput, EditGhrh_YearHumanApplyOrderInput>, IGhrh_YearHumanApplyOrderServices
{
private readonly IBaseRepository<Ghrh_YearHumanApplyOrder> _dal;
//private readonly Ghrh_YearHumanSettingsServices _ghrh_YearHumanSettingsServices;
public Ghrh_YearHumanApplyOrderServices(ICaching caching, IBaseRepository<Ghrh_YearHumanApplyOrder> dal)
{
this._dal = dal;
base.BaseDal = dal;
base._caching = caching;
//_ghrh_YearHumanSettingsServices = ghrh_YearHumanSettingsServices;
}
public async Task<ServiceResult<Ghrh_YearHumanApplyOrderDto>> QueryByWorkId(int objId)
{
var entity = await base.QuerySingleDto(x => x.WorkID == objId);
if (entity != null)
entity.Items = await Db.Queryable<Ghrh_YearHumanSettings>().Where(x => x.OrderId == entity.Id).ToListAsync();
return ServiceResult<Ghrh_YearHumanApplyOrderDto>.OprateSuccess("查询成功!", entity);
}
}