示例#1
0
 /**
  * 添加监控接收者
  *
  * @param po
  */
 public boolean addLoginUserPo(LoginUserPo po) {
   boolean result = dao.addLoginUserPo(po);
   if (result) {
     UserService.get().register(UserService.get().createUserDefine(po));
   }
   return result;
 }
示例#2
0
  /**
   * 删除一个用户
   *
   * @param id
   * @return
   */
  public boolean deleteLoginUserPo(Integer id) {
    boolean result = dao.deleteLoginUserPo(id);
    if (result) {
      UserDefine define = new UserDefine();
      define.setUserId(id);
      UserService.get().register(define);
    }

    return result;
  }