邮件唯一id生成方式修改
parent
1a8809892e
commit
befad45243
|
|
@ -7,7 +7,7 @@ import com.ljsd.jieling.util.UUIDEnum;
|
|||
|
||||
public class Mail extends MongoBase {
|
||||
|
||||
private String id ;
|
||||
private String id ;
|
||||
|
||||
private int roleUid; //所属玩家的UID
|
||||
|
||||
|
|
@ -38,7 +38,7 @@ public class Mail extends MongoBase {
|
|||
|
||||
}
|
||||
public Mail(int uid,String head,String content,String mailItem,int sendTime,int effectiveTime,String sendName,int mailType){
|
||||
this.id = KeyGenUtils.produceIdByModule(UUIDEnum.MAIL, uid);
|
||||
this.id = KeyGenUtils.produceIdByModuleNew(UUIDEnum.MAIL, uid);
|
||||
this.roleUid = uid;
|
||||
this.state = Global.MAIL_STATE_NEW;
|
||||
this.head = head;
|
||||
|
|
@ -50,7 +50,7 @@ public class Mail extends MongoBase {
|
|||
this.mailType = mailType;
|
||||
}
|
||||
public Mail(int uid,String head,String content,String mailItem,int sendTime,int effectiveTime,String sendName,int mailType,int isTop,int markType){
|
||||
this.id = KeyGenUtils.produceIdByModule(UUIDEnum.MAIL, uid);
|
||||
this.id = KeyGenUtils.produceIdByModuleNew(UUIDEnum.MAIL, uid);
|
||||
this.roleUid = uid;
|
||||
this.state = Global.MAIL_STATE_NEW;
|
||||
this.head = head;
|
||||
|
|
|
|||
Loading…
Reference in New Issue