Browse Source

app消息推送

sunhh 1 year ago
parent
commit
0d4107a0d1

+ 4 - 0
business-service/src/main/java/com/ozs/service/entity/MsgAppPush.java

@@ -77,4 +77,8 @@ public class MsgAppPush extends BaseEntity implements Serializable {
      */
     private String remark;
 
+    /**
+     * app标识ID registration_id
+     */
+    private String registrationId;
 }

+ 1 - 0
hazard-admin/src/main/java/com/ozs/web/controller/websocket/WebSocketConteoller.java

@@ -196,6 +196,7 @@ public class WebSocketConteoller extends BaseController {
                     msgAppPush.setPushId(pushId);
                     msgAppPush.setAlarmId(alarmId);
                     msgAppPush.setReceiveBy(userRegistrationid.getUserId());
+                    msgAppPush.setRegistrationId(userRegistrationid.getRegistrationId());
                     msgAppPush.setCreateBy(userIdLogin);
                     msgAppPush.setCreateTime(new Date());
                     msgAppPush.setUpdateBy(userIdLogin);