Преглед изворни кода

修改消息对象构造器

chenw пре 7 година
родитељ
комит
c265245ce0

+ 5 - 2
applications/transfers/transfers-server/src/main/java/com/usoftchina/saas/transfers/po/MessageInfo.java

@@ -2,6 +2,7 @@ package com.usoftchina.saas.transfers.po;
 
 import java.io.Serializable;
 import java.util.Date;
+import java.util.UUID;
 
 /**
  * @Description 消息内容
@@ -90,11 +91,13 @@ public class MessageInfo implements Serializable {
         this.bizId = bizId;
     }
 
-    public MessageInfo(String userId, String appId, String bizType, String bizId) {
+    public MessageInfo(String userId, String bizType, String bizId, Long companyId) {
+        this.msgId = UUID.randomUUID().toString();
         this.userId = userId;
-        this.appId = appId;
+        this.appId = "trade";
         this.bizType = bizType;
         this.bizId = bizId;
+        this.companyId = companyId;
         this.timestamp = new Date().getTime();
     }