namespace Tiobon.Core.Services; /// /// 简历组别 (服务) /// public class Ghrh_ResumeInfoGroupServices : BaseServices, IGhrh_ResumeInfoGroupServices { private readonly IBaseRepository _dal; public Ghrh_ResumeInfoGroupServices(ICaching caching, IBaseRepository dal) { this._dal = dal; base.BaseDal = dal; base._caching = caching; } public override async Task Add(InsertGhrh_ResumeInfoGroupInput entity) { entity.GroupType = entity.GroupType ?? "Other"; var SortNo = await Db.Queryable().MaxAsync(it => it.SortNo); entity.SortNo = SortNo + 1; return await base.Add(entity); } }