|
|
|
@ -3,7 +3,6 @@ using DinkToPdf.Contracts; |
|
|
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
|
|
using Microsoft.Extensions.Hosting; |
|
|
|
|
using System.IO.Compression; |
|
|
|
|
using Tiobon.Core.IServices; |
|
|
|
|
using static Tiobon.Core.Model.Consts; |
|
|
|
|
|
|
|
|
|
namespace Tiobon.Core.Services; |
|
|
|
@ -619,6 +618,13 @@ ORDER BY A.SortNo ASC"; |
|
|
|
|
RecycledTime = null, |
|
|
|
|
}) |
|
|
|
|
.Where(it => ids.Contains(it.Id)).ExecuteCommandAsync(); |
|
|
|
|
|
|
|
|
|
if (status == "Talent_Pool" || status == "Blacklist") |
|
|
|
|
await Db.Updateable<Ghrh_InterviewOrder>() |
|
|
|
|
.SetColumns(it => it.IsEnable == 0) |
|
|
|
|
.Where(it => it.ResumeId != null && ids.Contains(it.ResumeId.Value)) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
|
|
|
|
|
return result > 0 ? true : false; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -636,6 +642,11 @@ ORDER BY A.SortNo ASC"; |
|
|
|
|
RecycledTime = DateTime.Now, |
|
|
|
|
}) |
|
|
|
|
.Where(it => ids.Contains(it.Id)).ExecuteCommandAsync(); |
|
|
|
|
|
|
|
|
|
await Db.Updateable<Ghrh_InterviewOrder>() |
|
|
|
|
.SetColumns(it => it.IsEnable == 0) |
|
|
|
|
.Where(it => it.ResumeId != null && ids.Contains(it.ResumeId.Value)) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
return result > 0 ? true : false; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -644,8 +655,13 @@ ORDER BY A.SortNo ASC"; |
|
|
|
|
#region 添加标签 |
|
|
|
|
public async Task<bool> MarkTags(List<long> ids, List<long> tags) |
|
|
|
|
{ |
|
|
|
|
var result = 0; |
|
|
|
|
var tag = JsonHelper.ObjToJson(tags); |
|
|
|
|
var result = await Db.Updateable<Ghrh_Resume>() |
|
|
|
|
if (ids != null) |
|
|
|
|
{ |
|
|
|
|
if (ids.Count == 0) |
|
|
|
|
{ |
|
|
|
|
result = await Db.Updateable<Ghrh_Resume>() |
|
|
|
|
.SetColumns(it => new Ghrh_Resume() |
|
|
|
|
{ |
|
|
|
|
Tags = tag, |
|
|
|
@ -654,6 +670,32 @@ ORDER BY A.SortNo ASC"; |
|
|
|
|
}) |
|
|
|
|
.Where(it => ids.Contains(it.Id)) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
for (int i = 0; i < ids.Count; i++) |
|
|
|
|
{ |
|
|
|
|
var resume = await base.QueryById(ids[i]); |
|
|
|
|
if (resume != null) |
|
|
|
|
{ |
|
|
|
|
var tagIds = JsonHelper.JsonToObj<List<long>>(resume.Tags ?? "[]"); |
|
|
|
|
tagIds.AddRange(tags); |
|
|
|
|
tagIds = tagIds.Distinct().ToList(); |
|
|
|
|
tag = JsonHelper.ObjToJson(tagIds); |
|
|
|
|
result = await Db.Updateable<Ghrh_Resume>() |
|
|
|
|
.SetColumns(it => new Ghrh_Resume() |
|
|
|
|
{ |
|
|
|
|
Tags = tag, |
|
|
|
|
UpdateBy = App.User.ID, |
|
|
|
|
UpdateTime = DateTime.Now, |
|
|
|
|
}) |
|
|
|
|
.Where(it => it.Id == ids[i]) |
|
|
|
|
.ExecuteCommandAsync(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return result > 0 ? true : false; |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -1525,8 +1567,7 @@ END"; |
|
|
|
|
x.Status == DIC_INTERVIEW_ORDER_STATUS.WaitInterview || |
|
|
|
|
x.Status == DIC_INTERVIEW_ORDER_STATUS.WaitSendOffer || |
|
|
|
|
x.Status == DIC_INTERVIEW_ORDER_STATUS.HasSendOffer || |
|
|
|
|
x.Status == DIC_INTERVIEW_ORDER_STATUS.HasOffer || |
|
|
|
|
x.Status == DIC_INTERVIEW_ORDER_STATUS.HasInterview))) |
|
|
|
|
x.Status == DIC_INTERVIEW_ORDER_STATUS.HasOffer))) |
|
|
|
|
continue; |
|
|
|
|
|
|
|
|
|
await Db.Updateable<Ghrh_InterviewOrder>() |
|
|
|
|