Explorar el Código

1、Debug模式下,批量更新report_date以便于全部sn上报测试;

scbc.sat2 hace 5 años
padre
commit
1b9a1da236
Se han modificado 1 ficheros con 5 adiciones y 7 borrados
  1. 5 7
      scbc.tools/scbc.tools/DataImpl.cpp

+ 5 - 7
scbc.tools/scbc.tools/DataImpl.cpp

@@ -664,7 +664,11 @@ BOOL CDataImpl::UpdateKeyReportStatus(std::string sn)
 		FREE_MSG;
 		return FALSE;
 	}
-
+#ifdef _DEBUG
+	// ÅúÁ¿ÐÞ¸Äreport_date;
+	sqlite3_exec(m_psqlite3, "UPDATE keys set copy_date = CURRENT_TIMESTAMP;", NULL, NULL, &psqlite_error);
+	FREE_MSG;
+#endif
 	return TRUE;
 }
 
@@ -762,11 +766,5 @@ BOOL CDataImpl::RemoveBidData(std::string order)
 	if ( TransactionCommit() != 0 )
 		return FALSE;
 
-#ifdef _DEBUG
-	// ÅúÁ¿ÐÞ¸Äreport_date;
-	sqlite3_exec(m_psqlite3, "UPDATE keys set copy_date = CURRENT_TIMESTAMP;", NULL, NULL, &psqlite_error);
-	FREE_MSG;
-#endif
-
 	return TRUE;
 }