#ifndef SCHEMEPROCESSSERVICE_H #define SCHEMEPROCESSSERVICE_H #include class SchemeProcessService { public: SchemeProcessService(QObject *parent = nullptr); //添加项目 int AddSchemeProcess(const SchemePlanManager::SchemeProcessInfo &schemeProcessInfo); int SaveSchemeProcess(const SchemePlanManager::SchemeProcessInfo &schemeProcessInfo); //更新项目 bool UpdateSchemeProcess(const SchemePlanManager::SchemeProcessInfo &schemeProcessInfo); //查询所有 bool QueryAllByProjectIdAndIndexType(QList &schemeProcessInfo, int projectId, int indexType); //查询所有 bool QueryAllByProjectId(QList &schemeProcessInfo, int projectId); //根据id删除 bool DeleteById(int id); bool DeleteAll(); //批量添加 bool AddAllSchemeProcess(QList &schemeProcessInfo); }; #endif // SCHEMEPROCESSSERVICE_H