/// <summary> /// 批量删除模块 /// </summary> /// <param name="userInfo">用户</param> /// <param name="ids">主键数组</param> /// <returns>数据表</returns> public int BatchDelete(UserInfo userInfo, string[] ids) { int returnValue = 0; var parameter = ParameterUtil.CreateWithMessage(userInfo, MethodBase.GetCurrentMethod(), this.serviceName, RDIFrameworkMessage.ModuleService_BatchDelete); ServiceUtil.ProcessRDIReadDb(userInfo, parameter, dbProvider => { var moduleManager = new PiModuleManager(dbProvider, userInfo); returnValue = moduleManager.Delete(ids); }); return(returnValue); }