public void deleteMenuSort(List<DeskTopMenuBean> beans) throws Exception { String sql = "deleteUserDeskMapMenusSort"; executor.deleteBeans(dbname, sql, beans); }
public void deleteBeans( String sqlname, List beans) throws SQLException { deleteBeans( null,sqlname, beans); }
public void deleteBeans( String sqlname, List beans,GetCUDResult GetCUDResult) throws SQLException { deleteBeans( (String)null,sqlname, beans,GetCUDResult); }
/** * 批量删除业务类别 * @param businessType * @return */ public int batchDelete(List<BusinessType> businessTypeList) { int result = 0; try { executor.deleteBeans("deleteBusinessType", businessTypeList); result = 1; } catch (Exception e) { logger.error(e); } return result; }
public void delteDeskmenu(String ids, String userid)throws Exception { if (StringUtil.isNotEmpty(ids)) { String[] arrayIds = ids.split(","); List<DeskTopMenuBean> list = new ArrayList<DeskTopMenuBean>(); for (int i = 0; i < arrayIds.length;i++) { DeskTopMenuBean bean = new DeskTopMenuBean(); bean.setUserid(userid); bean.setMenupath(arrayIds[i]); list.add(bean); } executor.deleteBeans(dbname, "deldeskmenu", list); } }
deleteAuths.add(authinfos); this.executor.deleteBeans("deleteAllRoleAuthResources", deleteAuths); deleteAuths.add(authinfos); this.executor.deleteBeans("deleteAllRoleAuthResources", deleteAuths);
this.executor.deleteBeans("deleteRoleUsers", userRoles); tm.commit(); } catch (Exception e) {
deleteAuths.add(authinfos); this.executor.deleteBeans("deleteRoleAuthResources", deleteAuths);
/** * 批量删除 * @param beans * @return */ public boolean delteIpControl(List<IpControl> beans) { TransactionManager tm = new TransactionManager(); try { tm.begin(); executor.deleteBeans("delteIpControl", beans); tm.commit(); } catch (Throwable e) { return false; } finally { tm.release(); } return true; }
executor.deleteBeans(dbname, "deldeskmenu", list);