feat: 审批摘要对人可读并支持站内信深链
All checks were successful
Build and Deploy / deploy (push) Successful in 1m17s

充值载荷补截图与支付方式;价格摘要去掉哈希;通知内容写入审批单深链标记。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zzh 2026-11-09 09:18:11 +08:00
parent 2ca7d0c1d6
commit d83d290ccb
3 changed files with 17 additions and 10 deletions

View File

@ -42,7 +42,8 @@ public class ApprovalNotifier(
$"审批单 {instance.InstanceNo} 待你处理。\n" + $"审批单 {instance.InstanceNo} 待你处理。\n" +
$"操作:{instance.OperationCode}\n" + $"操作:{instance.OperationCode}\n" +
$"申请人:{instance.ApplicantUserName ?? instance.ApplicantUserGuid}\n" + $"申请人:{instance.ApplicantUserName ?? instance.ApplicantUserGuid}\n" +
$"请到「系统管理 / 审批待办」处理。"; $"请到「系统管理 / 审批待办」处理。\n" +
$"[OMS_APPROVAL:id={instance.Id}&tab=todo]";
await noticeRepository.InsertAsync(new Notice await noticeRepository.InsertAsync(new Notice
{ {
@ -84,7 +85,8 @@ public class ApprovalNotifier(
$"审批单 {instance.InstanceNo} 已{resultText}。\n" + $"审批单 {instance.InstanceNo} 已{resultText}。\n" +
$"操作:{instance.OperationCode}\n" + $"操作:{instance.OperationCode}\n" +
(string.IsNullOrWhiteSpace(comment) ? string.Empty : $"意见:{comment.Trim()}\n") + (string.IsNullOrWhiteSpace(comment) ? string.Empty : $"意见:{comment.Trim()}\n") +
$"可在「系统管理 / 审批待办 → 我发起的」查看详情。"; $"可在「系统管理 / 审批待办 → 我发起的」查看详情。\n" +
$"[OMS_APPROVAL:id={instance.Id}&tab=submitted]";
await noticeRepository.InsertAsync(new Notice await noticeRepository.InsertAsync(new Notice
{ {

View File

@ -466,11 +466,11 @@ public partial class SalesProductService
PayloadJson = OmsDocHelper.SerializeJson(payload), PayloadJson = OmsDocHelper.SerializeJson(payload),
Summary = new Summary = new
{ {
salesProductId, productCode = product.ProductCode,
product.ProductCode, productName = product.ProductName,
product.ProductName, description,
contentHash, hasAiReport = !string.IsNullOrWhiteSpace(aiAnalysisReport),
description applicantUserName = publishUser
} }
}); });

View File

@ -82,15 +82,20 @@ public class RechargeService : ApplicationService
customerName = customer.CustomerName, customerName = customer.CustomerName,
serialNumber = savedEntity.SerialNumber, serialNumber = savedEntity.SerialNumber,
rechargeAmount = savedEntity.RechargeAmount, rechargeAmount = savedEntity.RechargeAmount,
payType = (int)savedEntity.PayType payType = (int)savedEntity.PayType,
payTypeName = GetPayTypeName(savedEntity.PayType),
remark = savedEntity.Remark,
// 审批人查看用公网 URL;相对路径便于前端二次 resolve
rechargeScreenshot = FileStorage.GetPublicUrl(savedEntity.RechargeScreenshot),
rechargeScreenshotPath = savedEntity.RechargeScreenshot
}), }),
Summary = new Summary = new
{ {
savedEntity.Id,
customer.CustomerCode, customer.CustomerCode,
customer.CustomerName, customer.CustomerName,
savedEntity.SerialNumber, savedEntity.SerialNumber,
savedEntity.RechargeAmount savedEntity.RechargeAmount,
payTypeName = GetPayTypeName(savedEntity.PayType)
} }
}); });