/// <summary> /// 保存排序顺序 /// </summary> /// <param name="userInfo">用户</param> /// <param name="ids">主键数组</param> /// <returns>影响行数</returns> public int SetSortCode(UserInfo userInfo, string[] ids) { int returnValue = 0; var parameter = ParameterUtil.CreateWithMessage(userInfo, MethodBase.GetCurrentMethod(), this.serviceName, RDIFrameworkMessage.ModuleService_SetSortCode, "主键数组:" + BusinessLogic.ArrayToList(ids)); ServiceUtil.ProcessRDIReadDb(userInfo, parameter, dbProvider => { if (userInfo.IsAdministrator) { PiModuleManager moduleManager = new PiModuleManager(dbProvider, userInfo); returnValue = moduleManager.BatchSetSortCode(ids); } }); return(returnValue); }