@Test public void addUserTest() throws SQLException { Assert.assertTrue(userService.addUser(user)); }
public boolean addUser(LoginUser user) throws SQLException { user.setPassword(encdecConfiguration.parseUnidirection(user.getPassword())); return loginUserDao.insertUser(user) > 1; }
UserService { public boolean addUser(LoginUser user) throws SQLException { user.setPassword(encdecConfiguration.parseUnidirection(user.getPassword())); return loginUserDao.insertUser(user) > 1; } }
UserService { public boolean addUser(LoginUser user) throws SQLException { user.setPassword(encdecConfiguration.parseUnidirection(user.getPassword())); return loginUserDao.insertUser(user) > 1; }  }
UserService { public boolean addUser(LoginUser user) throws SQLException { user.setPassword(encdecConfiguration.parseUnidirection(user.getPassword())); return loginUserDao.insertUser(user) > 1; }  ValidatorChain validatePermision(LoginUser user, Errors errors); boolean canUpdateOrDeleteUser(LoginUser currentUser, LoginUser newUser); boolean canUpdateOrDeleteUser(Long userId, Integer userRole, Long newUserId, Integer newUserRole); boolean addUser(LoginUser user); boolean update(LoginUser user); ListResult<LoginUserView> findUserPageList(Paging<LoginUser> paging); boolean initAdminInfo(LoginUser user); boolean register(LoginUser user); ServiceResult<LoginUser> getUserInfoByWorkName(LoginUser user, String name); ServiceResult getUserManageButton(LoginUser user); }
UserService { public boolean addUser(LoginUser user) throws SQLException { user.setPassword(encdecConfiguration.parseUnidirection(user.getPassword())); return loginUserDao.insertUser(user) > 1; }  ValidatorChain validatePermision(LoginUser user, Errors errors); boolean canUpdateOrDeleteUser(LoginUser currentUser, LoginUser newUser); boolean canUpdateOrDeleteUser(Long userId, Integer userRole, Long newUserId, Integer newUserRole); boolean addUser(LoginUser user); boolean update(LoginUser user); ListResult<LoginUserView> findUserPageList(Paging<LoginUser> paging); boolean initAdminInfo(LoginUser user); boolean register(LoginUser user); ServiceResult<LoginUser> getUserInfoByWorkName(LoginUser user, String name); ServiceResult getUserManageButton(LoginUser user);  }