DBServiceSet.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #ifndef DBSERVICESET_H
  2. #define DBSERVICESET_H
  3. #include "ClassSet.h"
  4. class DBServiceSet
  5. {
  6. public:
  7. explicit DBServiceSet(QObject *parent = nullptr);
  8. //////////////////////common-start////////////////////
  9. int getNextId(QString tableName);
  10. //////////////////////common-start////////////////////
  11. //////////////////////节点权重值持久化-start////////////////////
  12. //////////////////////common-start////////////////////
  13. ////////////////////方案持久化-start////////////////////
  14. bool AddSchemeInfoList(const QList<SchemaEval *> &schemaEvalList);
  15. bool DeleteSchemeByEngineerId(int engineerId);
  16. bool QuerySchemeInfoByEngineerId(QList<SchemaEval *> *schemeList, int engineerId);
  17. //////////////////////common-start////////////////////
  18. //////////////////////技术重要度持久化-start////////////////////
  19. //添加信息
  20. bool AddTechnicalImportInfo(const TechnicalImport &technicalImport);
  21. bool AddTechnicalImportInfoList(const QList<TechnicalImport *> &technicalImportList);
  22. /*批量修改节点值*/
  23. bool UpdateTechnicalImportInfoList(const QList<TechnicalImport *> technicalImportList);
  24. bool QueryTechnicalImportInfoByEngineerId(QList<TechnicalImport *> *technicalImportList, int expertId,
  25. int engineerId);
  26. bool QueryTechnicalImportInfoByEngineerId(int expertId, int engineerId);
  27. //////////////////////common-start////////////////////
  28. //////////////////////节点矩阵信息表-start////////////////////
  29. //////////////////////节点矩阵信息表-end/////////////////////
  30. //////////////////////评估方案表-start////////////////////
  31. //添加信息
  32. bool AddPlanInfo(const PlanInfo &planInfo);
  33. /*修改评估方案信息*/
  34. bool UpdatePlanInfo(const PlanInfo &planInfo);
  35. /*根据评估方案id查询评估方案信息*/
  36. bool QueryPlanInfoById(PlanInfo *planInfo, int planId);
  37. /*根据列名称和列值模糊查询评估方案信息,列名称为实体类中的属性名称*/
  38. bool QueryPlanListByColumnAndColumnValue(QList<PlanInfo *> *planInfoList, QString columnName, QString columnValue);
  39. bool QueryPlanList(QList<PlanInfo *> *planInfoList);
  40. /*根据评估方案编号删除评估方案信息*/
  41. bool DeletePlanById(int planId);
  42. //////////////////////评估方案表-end////////////////////
  43. //////////////////////评估方案指标体系关系表-start////////////////////
  44. //添加信息
  45. // bool AddIndexSetPlanInfo(const IndexSetPlanInfo &planInfo);
  46. bool AddIndexSetPlanInfoList(const QList<IndexSetPlanInfo *> planInfoList);
  47. /*修改信息*/
  48. bool UpdateIndexSetPlanInfo(const IndexSetPlanInfo &planInfo);
  49. bool UpdateIndexSetPlanInfoList(const QList<IndexSetPlanInfo *> planInfoList);
  50. /*根据id查询信息*/
  51. bool QueryIndexSetPlanInfo(IndexSetPlanInfo *planInfo, int Id);
  52. /*根据列名称和列值模糊查询信息,列名称为实体类中的属性名称*/
  53. bool QueryIndexSetPlanListByColumnAndColumnValue(QList<IndexSetPlanInfo *> *planInfoList, QString columnName,
  54. QString columnValue);
  55. /*根据编号删除关联信息*/
  56. bool DeleteIndexSetPlanById(int Id);
  57. bool DeleteIndexSetPlanByPlanId(int planId);
  58. bool DeleteIndexSetPlanByIndexSetId(int indexSetId);
  59. //////////////////////评估方案指标体系关系表-end////////////////////
  60. };
  61. #endif // DBSERVICESET_H