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.
34 lines
1.1 KiB
34 lines
1.1 KiB
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
|
|
{
|
|
/// <summary>
|
|
/// Ӧ�òִ�ʵ��
|
|
/// </summary>
|
|
public class RecruitmentRepository : BaseRepository<RecruitmentEntity, long>, IRecruitmentRepository
|
|
{
|
|
public RecruitmentRepository()
|
|
{
|
|
}
|
|
|
|
public RecruitmentRepository(IDbContextCore context) : base(context)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据UserId修改招聘信息是否实名认证
|
|
/// </summary>
|
|
/// <param name="userId"></param>
|
|
/// <returns></returns>
|
|
public async Task<int> UpdateIsRealAuthenticationAsync(long userId)
|
|
{
|
|
string sql = @"UPDATE rm_recruitment SET IsRealAuthentication=TRUE WHERE UserId=@UserId";
|
|
return await DapperConn.ExecuteAsync(sql, new { UserId = userId });
|
|
}
|
|
}
|
|
}
|