12345678910111213141516171819202122232425262728293031 |
- #ifndef SCHEMEPROCESSSERVICE_H
- #define SCHEMEPROCESSSERVICE_H
- #include <SchemePlanManager.h>
- 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<SchemePlanManager::SchemeProcessInfo> &schemeProcessInfo, int projectId,
- int indexType);
- //查询所有
- bool QueryAllByProjectId(QList<SchemePlanManager::SchemeProcessInfo> &schemeProcessInfo, int projectId);
- //根据id删除
- bool DeleteById(int id);
- bool DeleteAll();
- //批量添加
- bool AddAllSchemeProcess(QList<SchemePlanManager::SchemeProcessInfo> &schemeProcessInfo);
- };
- #endif // SCHEMEPROCESSSERVICE_H
|