#include "ProjectManager.h" #include int ProjectManager::queryProjects(QList *projList) { bool ret = DBServiceSet().QueryEngineerList(projList); if (ret) { for (EngineerInfo *proj : *projList) { DBServiceSet().QueryUserConfigListInfoByEngineerId(&proj->configs, proj->engineerId); } } return ret ? QF_CODE_SUCCEEDED : QF_CODE_DATA_ERROR; }