feat:新增配片单重复打开的缓存问题,已发货短信

This commit is contained in:
一休哥哥6666
2026-06-14 16:31:41 +08:00
parent 3af309d442
commit dfef98814b
3 changed files with 15 additions and 10 deletions

View File

@@ -14,9 +14,9 @@ public interface SmsNotificationService
void trySendOrderAssignedNotify(String phone, String orderNo);
/**
* 订单发货后,向收件人手机号发送通知(失败不影响主流程)
* 订单发货后发送通知(失败不影响主流程)
*
* @param phone 手机号
* @param phone 手机号(品牌方租户手机号,或收货人手机号)
* @param orderNo 订单号,对应模板变量 code
* @param expressCompany 快递公司,对应模板变量 expressCompany
* @param expressNo 快递单号,对应模板变量 expressNo

View File

@@ -104,9 +104,10 @@ public class JySysTenantMessageServiceImpl implements IJySysTenantMessageService
JySysTenantMessage.TYPE_STATUS_CHANGE, "订单状态变更", content, orderStatus);
if (ORDER_STATUS_SHIPPED.equals(orderStatus))
{
String smsPhone = StringUtils.isNotEmpty(order.getReceiverPhone())
? order.getReceiverPhone()
: brandTenant.getPhone();
// 模板「您的配片单…」通知配片单所属品牌方;无租户手机号时回退收货人手机号
String smsPhone = StringUtils.isNotEmpty(brandTenant.getPhone())
? brandTenant.getPhone()
: order.getReceiverPhone();
if (StringUtils.isNotEmpty(smsPhone))
{
smsNotificationService.trySendOrderShippedNotify(smsPhone, orderNo, expressCompany, expressNo);