Commit fcc20a7b by zhoujinhui

新增盘点创建消息通知

parent 28e18c4d
......@@ -90,6 +90,10 @@ namespace Service.TakeStock
}
else
{
if(schedule.WarehouseCode == "GZBLWH" || schedule.WarehouseCode == "BLGZ03")
{
SendMsg($"{schedule.CreatorUserName}-已创建盘点计划单-{schedule.Code}", "e1f7a902-0f97-4ca2-be75-4f68362afa39");
}
if (schedule.TakeStockType == TakeStockType.Voidgoods)
{
SendMsg($"{schedule.CreatorUserName}-已创建盘点作废计划单-{schedule.Code},请一级审核人:@{auditProcessLogList.First().AuditUserName},及时处理!");
......@@ -125,11 +129,19 @@ namespace Service.TakeStock
return resultList;
}
public static void SendMsg(string message, bool isSendAll = false)
/// <summary>
/// 企业微信群消息通知
/// </summary>
/// <param name="message"></param>
/// <param name="sendKey">报废通知 ae4ff11f-19c7-483c-951f-c57da0649ec2
/// 创建盘点单通知 e1f7a902-0f97-4ca2-be75-4f68362afa39
/// </param>
/// <param name="isSendAll"></param>
public static void SendMsg(string message,string sendKey= "ae4ff11f-19c7-483c-951f-c57da0649ec2", bool isSendAll = false)
{
try
{
var weChatUrl = $"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=ae4ff11f-19c7-483c-951f-c57da0649ec2";
var weChatUrl = $"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key={sendKey}";
var chatData = new
{
msgtype = "text",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment