清理项目文件。
This commit is contained in:
		@@ -13,7 +13,7 @@ void SetKey( Book * pBook )
 | 
			
		||||
		return;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	pBook->setKey(L"cpic", L"windows-202d21040bc4e70060bc6264a6ucu7i1");
 | 
			
		||||
	pBook->setKey( L"cpic", L"windows-202d21040bc4e70060bc6264a6ucu7i1" );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/************************************************
 | 
			
		||||
@@ -21,16 +21,38 @@ void SetKey( Book * pBook )
 | 
			
		||||
* \param filePath Excel文件路径
 | 
			
		||||
* \param schemeMap 存放车商方案数据的map
 | 
			
		||||
************************************************/
 | 
			
		||||
void LoadCarDealerSchemeFromXlsx( const wstring &        filePath,
 | 
			
		||||
void LoadCarDealerSchemeFromXlsx( const wstring &                 filePath,
 | 
			
		||||
                                  unsigned int                    sheetIndex,
 | 
			
		||||
                                  unsigned int                    firstRowIndex,
 | 
			
		||||
                                  map<wstring, CarDealerScheme> & schemeMap )
 | 
			
		||||
{
 | 
			
		||||
	Book* pBook = xlCreateXMLBookW();
 | 
			
		||||
	Sheet* pSheet = nullptr;
 | 
			
		||||
	Book *  pBook  = xlCreateXMLBookW();
 | 
			
		||||
	Sheet * pSheet = nullptr;
 | 
			
		||||
 | 
			
		||||
	if ( pBook == nullptr )
 | 
			
		||||
	{
 | 
			
		||||
		throw runtime_error("libxl库加载失败!");
 | 
			
		||||
		throw runtime_error( "libxl库加载失败!" );
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	SetKey(pBook);
 | 
			
		||||
	SetKey( pBook );
 | 
			
		||||
 | 
			
		||||
	if ( pBook->load( filePath.c_str() ) != true )
 | 
			
		||||
	{
 | 
			
		||||
		string errorMessage = "打开文件失败!";
 | 
			
		||||
		errorMessage.append( pBook->errorMessage() );
 | 
			
		||||
 | 
			
		||||
		throw runtime_error( errorMessage );
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	pSheet = pBook->getSheet( sheetIndex );
 | 
			
		||||
 | 
			
		||||
	if ( pSheet == nullptr )
 | 
			
		||||
	{
 | 
			
		||||
		string errorMessage = "读取sheet失败!";
 | 
			
		||||
		errorMessage.append( pBook->errorMessage() );
 | 
			
		||||
 | 
			
		||||
		throw runtime_error( errorMessage );
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user