예제 #1
0
  public Integer saveRole(Role role) {
    try {
      int ret = -101;
      if (roleDao.checkRoleName(role) <= 0) {

        ret = roleDao.saveRole(role);
      }
      return ret;
    } catch (Exception e) {
      e.printStackTrace();
    }
    return -1;
  }
예제 #2
0
  public Integer checkRoleName(Role role) {

    return roleDao.checkRoleName(role);
  }