using Dapper; using System.Threading.Tasks; using Znyc.Recruitment.Admin.Commons.IDbContext; using Znyc.Recruitment.Admin.Commons.Repositories; using Znyc.Recruitment.Admin.Security.Entitys; using Znyc.Recruitment.Admin.Security.IRepositories; namespace Znyc.Recruitment.Admin.Security.Repositories { /// /// 求职仓储实现 /// public class ApplyJobRepository : BaseRepository, IApplyJobRepository { public ApplyJobRepository() { } public ApplyJobRepository(IDbContextCore context) : base(context) { } /// /// 根据UserId修改求职信息是否实名认证 /// /// /// public async Task UpdateIsRealAuthenticationAsync(long userId) { string sql = @"UPDATE rm_applyjob SET IsRealAuthentication=TRUE WHERE UserId=@UserId"; return await DapperConn.ExecuteAsync(sql, new { UserId = userId }); } } }