Răsfoiți Sursa

重写消息推送

24282 1 an în urmă
părinte
comite
016ae85cf3

+ 1 - 1
hx-account/src/main/java/com/fjhx/account/service/account/impl/AccountRunningWaterServiceImpl.java

@@ -255,7 +255,7 @@ public class AccountRunningWaterServiceImpl extends ServiceImpl<AccountRunningWa
         //         msg, corporation.getName(), accountManagement.getName(), dto.getCurrency(), dto.getAmount()));
         //         msg, corporation.getName(), accountManagement.getName(), dto.getCurrency(), dto.getAmount()));
 
 
         WebSocketPush.byTenant(
         WebSocketPush.byTenant(
-                PushTypeEnum.PUSH_NOTIFICATION,
+                PushTypeEnum.MESSAGE,
                 StrUtil.format(msg, corporation.getName(), accountManagement.getName(), dto.getCurrency(), dto.getAmount()),
                 StrUtil.format(msg, corporation.getName(), accountManagement.getName(), dto.getCurrency(), dto.getAmount()),
                 PushBusinessTypeEnum.TO_THE_ACCOUNT.getType()
                 PushBusinessTypeEnum.TO_THE_ACCOUNT.getType()
         );
         );

+ 7 - 0
hx-common/src/main/java/com/fjhx/common/enums/PushBusinessTypeEnum.java

@@ -3,10 +3,17 @@ package com.fjhx.common.enums;
 import lombok.AllArgsConstructor;
 import lombok.AllArgsConstructor;
 import lombok.Getter;
 import lombok.Getter;
 
 
+/**
+ * 推送业务类型
+ */
 @Getter
 @Getter
 @AllArgsConstructor
 @AllArgsConstructor
 public enum PushBusinessTypeEnum {
 public enum PushBusinessTypeEnum {
     /**
     /**
+     * 流程专用
+     */
+    FLOW(0),
+    /**
      * 未读日报
      * 未读日报
      */
      */
     UNREAD_DAILY(1),
     UNREAD_DAILY(1),