送返修工单搞定。

This commit is contained in:
Kane Wang 2020-03-16 15:07:03 +08:00
parent 4e48c7f233
commit 5b19ff7aba
2 changed files with 26 additions and 38 deletions

View File

@ -313,6 +313,7 @@ void LoadRepairOrderFromXlsx( const std::wstring & filePath,
{ {
int colunmIndex = pSheet->firstCol(); int colunmIndex = pSheet->firstCol();
//报案推荐车商代码在表格中不存在,但在数据库中存在。
const wstring && branchName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && branchName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );
const wstring && orderNo = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && orderNo = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );
const wstring && orderType = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && orderType = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );
@ -328,7 +329,7 @@ void LoadRepairOrderFromXlsx( const std::wstring & filePath,
const wstring && isSuccess = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && isSuccess = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );
const wstring && recommandDealerCode = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && recommandDealerCode = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );
const wstring && recommandDealerName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && recommandDealerName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );
const wstring && recommandDealerCodeInNotify = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex, true ); const wstring && recommandDealerCodeInNotify = L""; // ReadCellStringFromXlsx(pBook, sheetIndex, rowIndex, colunmIndex, true);
const wstring && recommandDealerNameInNotify = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && recommandDealerNameInNotify = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );
const wstring && recommandDealerNameInSurvey = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && recommandDealerNameInSurvey = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );
const wstring && agentName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true ); const wstring && agentName = ReadCellStringFromXlsx( pBook, sheetIndex, rowIndex, colunmIndex++, true );

View File

@ -269,19 +269,6 @@ void ImportRepairOrderToOracle( const std::string & userName,
string lostItemID = QString::fromStdWString( iterOrder->getLostItemId() ).toLocal8Bit(); string lostItemID = QString::fromStdWString( iterOrder->getLostItemId() ).toLocal8Bit();
string surveyorRecommandStatus = QString::fromStdWString( iterOrder->getSurveyorRecommandStatus() ).toLocal8Bit(); string surveyorRecommandStatus = QString::fromStdWString( iterOrder->getSurveyorRecommandStatus() ).toLocal8Bit();
// OCI_Date * pDamageDate = OCI_DateCreate( pConn );
// OCI_Date * pGenDate = OCI_DateCreate( pConn );
// OCI_Date * pRepairingStartDate = OCI_DateCreate( pConn );
// OCI_Date * pRepairingEndDate = OCI_DateCreate( pConn );
// OCI_Date * pCheckDate = OCI_DateCreate( pConn );
// OCI_DateFromText( pDamageDate, strDamageDate.c_str(), "YYYY-MM-DD HH24:MI:SS" );
// OCI_DateFromText( pGenDate, strGenDate.c_str(), "YYYY-MM-DD" );
// OCI_DateFromText( pRepairingStartDate, strRepairingStartDate.c_str(), "YYYY-MM-DD HH24:MI:SS" );
// OCI_DateFromText( pRepairingEndDate, strRepairingEndDate.c_str(), "YYYY-MM-DD HH24:MI:SS" );
// OCI_DateFromText( pCheckDate, strCheckDate.c_str(), "YYYY-MM-DD HH24:MI:SS" );
//OCI_Date
OCI_BindString( pStmt, ":a_branch_name", const_cast<otext*>(branchName.c_str()), 0 ); OCI_BindString( pStmt, ":a_branch_name", const_cast<otext*>(branchName.c_str()), 0 );
OCI_BindString( pStmt, ":a_order_no", const_cast<otext*>(orderNo.c_str()), 0 ); OCI_BindString( pStmt, ":a_order_no", const_cast<otext*>(orderNo.c_str()), 0 );
OCI_BindString( pStmt, ":a_order_type", const_cast<otext*>(orderType.c_str()), 0 ); OCI_BindString( pStmt, ":a_order_type", const_cast<otext*>(orderType.c_str()), 0 );
@ -309,7 +296,7 @@ void ImportRepairOrderToOracle( const std::string & userName,
OCI_BindString( pStmt, ":a_check_date", const_cast<otext*>(checkDate.c_str()), 0 ); OCI_BindString( pStmt, ":a_check_date", const_cast<otext*>(checkDate.c_str()), 0 );
OCI_BindString( pStmt, ":a_repairing_start_date", const_cast<otext*>(repairingStartDate.c_str()), 0 ); OCI_BindString( pStmt, ":a_repairing_start_date", const_cast<otext*>(repairingStartDate.c_str()), 0 );
OCI_BindString( pStmt, ":a_repairing_finish_date", const_cast<otext*>(repairingEndDate.c_str()), 0 ); OCI_BindString( pStmt, ":a_repairing_finish_date", const_cast<otext*>(repairingEndDate.c_str()), 0 );
//
OCI_Execute( pStmt ); OCI_Execute( pStmt );
} }
catch ( runtime_error & error ) catch ( runtime_error & error )