/// <summary> /// 批量重新生成编号 /// </summary> /// <param name="userInfo">用户</param> /// <param name="ids">主键</param> /// <param name="codes">编号</param> /// <returns>影响行数</returns> public int BatchSetCode(BaseUserInfo userInfo, string[] ids, string[] codes) { int result = 0; var parameter = ServiceInfo.Create(userInfo, MethodBase.GetCurrentMethod()); ServiceUtil.ProcessUserCenterWriteDb(userInfo, parameter, (dbHelper) => { var manager = new BaseAreaManager(dbHelper, userInfo); result = manager.BatchSetCode(ids, codes); }); return(result); }
/// <summary> /// 批量重新生成编号 /// </summary> /// <param name="userInfo">用户</param> /// <param name="ids">主键</param> /// <param name="codes">编号</param> /// <returns>影响行数</returns> public int BatchSetCode(BaseUserInfo userInfo, string[] ids, string[] codes) { var parameter = ServiceParameter.CreateWithMessage(userInfo , MethodBase.GetCurrentMethod() , this.serviceName , AppMessage.OrganizeService_BatchSetCode); int result = 0; ServiceUtil.ProcessUserCenterWriteDb(userInfo, parameter, (dbHelper) => { var manager = new BaseAreaManager(dbHelper, userInfo); result = manager.BatchSetCode(ids, codes); }); return(result); }