diff --git a/Tiobon.Core.Services/BASE/BaseServices.cs b/Tiobon.Core.Services/BASE/BaseServices.cs index 11f1b6b3..7cfde99c 100644 --- a/Tiobon.Core.Services/BASE/BaseServices.cs +++ b/Tiobon.Core.Services/BASE/BaseServices.cs @@ -1,4 +1,8 @@ -namespace Tiobon.Core.Services.BASE; +using NPOI.SS.Formula.Functions; +using Org.BouncyCastle.Utilities.Zlib; +using Tiobon.Core.Model; + +namespace Tiobon.Core.Services.BASE; /// /// 增删改查基础服务 @@ -2047,6 +2051,42 @@ ORDER BY SortNo ASC"; -- select @Json exec [dbo].[PS_CreateWorkwxMsg] @Json,'Resume'"; + sql = @$"Declare @Json nvarchar(max) = '' + set @Json = (select '{title}' title, + 'text' msgtype, + '{content}' [description] , + 'Re'+(select Top 1 ParameterValue from Ghrs_Parameter where ParameterNo='GHRURL')+'/appOauth.html?jumpPage='+'F_APP_message/msgGroupList' url, + 'GHR' picurl, + '' htmlStr, + {string.Join(',', staffIds.Select(x => x))} toStaffIDs + for json path) + -- select @Json + exec [dbo].[PS_CreateWorkwxMsg] @Json,'Resume'"; + +// Declare @Json nvarchar(max) = '' +// set @Json = (select '测试提醒' title, +// 'markdown' msgtype, +// '您有个简历待面试,面试时间:2024/12/15 00:00~08:08,请及时查看! +//> **流程信息 * * +//> 申 请 人:< font color =\"info\">tisking 陶兰 +//> 假 别: < font color =\"warning\">事假 +//> 开始时间:< font color =\"comment\">2022-01-21 09:00 +//> 结束时间:< font color =\"comment\">2022-01-21 11:00 +//> +//> 请尽快核准" +// ' [description] , +// '' url, +// 'GHR' picurl, +// '' htmlStr, +// StaffID toStaffIDs +// from Ghra_Staff +// where StaffNo = 'tisking' +// for json path) +// select @Json +// exec[dbo].[PS_CreateWorkwxMsg] @Json,'Test' + + + await Db.Ado.ExecuteCommandAsync(sql); } diff --git a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs index 8594533c..4703dcd5 100644 --- a/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs +++ b/Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.cs @@ -3405,10 +3405,10 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status"; await UpdateResumeStatus(entity, Status); - await LogRecord(order.Id, $"提交了面试评估,轮数:{order.Round},是否通过:{(isPass == true ? "通过" : "不通过")},内容:{evaluateContent}!", id, null, "TempAssessInterview"); + await LogRecord(order.Id, $"提交了面试评估,轮数:{order.Round},是否通过:{(isPass == true ? "通过" : "不通过")},内容:{evaluateContent}!", id, null, "AssessInterview"); } else - await LogRecord(order.Id, $"暂存了面试评估,轮数:{order.Round},是否通过:{(isPass == true ? "通过" : "不通过")},内容:{evaluateContent}!", id, null, "AssessInterview"); + await LogRecord(order.Id, $"暂存了面试评估,轮数:{order.Round},是否通过:{(isPass == true ? "通过" : "不通过")},内容:{evaluateContent}!", id, null, "TempAssessInterview"); return ServiceResult.OprateSuccess(); }