Commit b7d8f529 authored by jiaorz's avatar jiaorz

注册接口修改

parent 2f1195f3
...@@ -566,7 +566,7 @@ public class Msg { ...@@ -566,7 +566,7 @@ public class Msg {
Msg entity = new Msg(); Msg entity = new Msg();
entity.id = ObjectId.get(); entity.id = ObjectId.get();
entity.userId = Integer.parseInt(user.getId().toString()); entity.userId = user.getId();
if("10000" ==user.getId().toString()) if("10000" ==user.getId().toString())
entity.nickname ="客服公众号"; entity.nickname ="客服公众号";
else else
......
...@@ -4,7 +4,6 @@ import java.util.List; ...@@ -4,7 +4,6 @@ import java.util.List;
import java.util.Map; import java.util.Map;
import com.xxfc.platform.im.utils.DateUtil; import com.xxfc.platform.im.utils.DateUtil;
import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Embedded; import org.mongodb.morphia.annotations.Embedded;
import org.mongodb.morphia.annotations.Entity; import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id; import org.mongodb.morphia.annotations.Id;
...@@ -28,7 +27,7 @@ import lombok.Setter; ...@@ -28,7 +27,7 @@ import lombok.Setter;
public class User { public class User {
@Id @Id
private ObjectId id;// 用户Id private Integer id;// 用户Id
//@JSONField(serialize = false) //@JSONField(serialize = false)
...@@ -189,7 +188,7 @@ public class User { ...@@ -189,7 +188,7 @@ public class User {
// ********************引用字段******************** // ********************引用字段********************
public ObjectId getId() { public Integer getId() {
return id; return id;
} }
...@@ -210,7 +209,7 @@ public class User { ...@@ -210,7 +209,7 @@ public class User {
this.num = num; this.num = num;
} }
public void setid(ObjectId id) { public void setId(Integer id) {
this.id = id; this.id = id;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment