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