reload role
parent
30af8125d3
commit
b31764a7d5
|
|
@ -0,0 +1,18 @@
|
|||
package com.ljsd.jieling.kefu;
|
||||
|
||||
import com.ljsd.jieling.db.mongo.MongoUtil;
|
||||
import com.ljsd.jieling.logic.dao.UserManager;
|
||||
import com.ljsd.jieling.logic.dao.root.User;
|
||||
|
||||
public class Cmd_reload_role_gm extends GmRoleAbstract{
|
||||
@Override
|
||||
public boolean exec(String[] args) throws Exception {
|
||||
User user = getUser();
|
||||
user = MongoUtil.getInstence().getMyMongoTemplate().findById(User.getCollectionName(), user.getId(), User.class);
|
||||
if (user == null) {
|
||||
return false;
|
||||
}
|
||||
UserManager.addUser(user);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue