日期:2014-05-17 浏览次数:20631 次
public void delete(int id) { [color=#FF0000] this.getHibernateTemplate().delete(this.getUserInfo(id)) ;[/color] }
public void deleteUser(int id) { [color=#FF0000]this.userDao.delete(id);[/color] } public UserInfo getUser(int id) { return this.userDao.getUserInfo(id); }
public String delete() { UserManagerService b= (UserManagerService) DefaultBeanFactory.getBean("UserManagerService"); if (this.name !=" ") { [color=#FF0000] b.deleteUser(this.id);[/color] } else { if (ids.length > 0) { for (int id : ids) { b.deleteUser(id); } } } if (b.listUser().size() > 0) { return "list_delete"; // return SUCCESS; } else { return INPUT; } }