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; }
public Integer checkRoleName(Role role) { return roleDao.checkRoleName(role); }