| | |
| | | } |
| | | } |
| | | |
| | | std::vector<std::string> SECSRuntimeManager::getAllPPID() { |
| | | std::lock_guard<std::mutex> lock(m_mutex); |
| | | if (m_pDB == nullptr) { |
| | | return {}; |
| | | } |
| | | |
| | | std::string querySQL = "SELECT PPID FROM EqpPPID;"; |
| | | auto rows = m_pDB->fetchResults(querySQL); |
| | | |
| | | std::vector<std::string> vecResult; |
| | | for (const auto& row : rows) { |
| | | vecResult.push_back(row[0]); |
| | | } |
| | | return vecResult; |
| | | } |
| | | |
| | | bool SECSRuntimeManager::updatePPIDForRecipe(int nRecipeNo, const std::string& strPPID) { |
| | | std::lock_guard<std::mutex> lock(m_mutex); |
| | | if (m_pDB == nullptr) { |