修改企微收到招聘的通知样式

master
xiaochanghai 6 months ago
parent 6377d50f7c
commit 06632681ea
  1. 42
      Tiobon.Core.Services/BASE/BaseServices.cs
  2. 4
      Tiobon.Core.Services/Ghrh/Ghrh_ResumeServices.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;
/// <summary> /// <summary>
/// 增删改查基础服务 /// 增删改查基础服务
@ -2047,6 +2051,42 @@ ORDER BY SortNo ASC";
-- select @Json -- select @Json
exec [dbo].[PS_CreateWorkwxMsg] @Json,'Resume'"; 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>
//> 假 别: < font color =\"warning\">事假</font>
//> 开始时间:< font color =\"comment\">2022-01-21 09:00</font>
//> 结束时间:< font color =\"comment\">2022-01-21 11:00</font>
//>
//> 请尽快核准"
// ' [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); await Db.Ado.ExecuteCommandAsync(sql);
} }

@ -3405,10 +3405,10 @@ WHERE A.IsEnable = 1 AND C.IsEnable = 1 AND C.Status = A.Status";
await UpdateResumeStatus(entity, 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 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(); return ServiceResult.OprateSuccess();
} }

Loading…
Cancel
Save