DBServiceSet.h 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  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. /*单个节点信息新增*/
  30. //添加信息
  31. bool AddNodeMatrixInfo(const NodeMatrixInfo &nodeMatrixInfo);
  32. /*批量节点信息新增*/
  33. bool AddNodeMatrixInfoList(const QList<NodeMatrixInfo *> &jbInfoList);
  34. /*批量节点信息新增----专家端*/
  35. bool AddNodeMatrixInfoList2(const QList<NodeMatrixInfo *> &jbInfoList);
  36. /*修改节点值*/
  37. bool UpdateNodeMatrixNodeValue(const NodeMatrixInfo &nodeMatrixInfo);
  38. /*批量修改节点值*/
  39. bool UpdateNodeMatrixNodeValueList(const QList<NodeMatrixInfo *> jbInfoList);
  40. /*批量修改节点值--专家端*/
  41. bool UpdateNodeMatrixNodeValueList2(const QList<NodeMatrixInfo *> jbInfoList);
  42. /*根据专家姓名查询对应的节点信息*/
  43. bool QueryNodeMatrixListByExpertName(QList<NodeMatrixInfo *> *nodeMatrixInfoList, QString expertName);
  44. bool QueryNodeMatrixListByExpertNameAndEngineerId(QString expertName, int engineerId, QString tableMsg,
  45. QString mark);
  46. /*根据专家id查询对应的节点信息*/
  47. bool QueryNodeMatrixListByExpertIdAndEngineerId(QString expertId, int engineerId, QString tableMsg);
  48. /*根据专家名称和工程ID查询对应的节点信息*/
  49. bool QueryNodeMatrixListByExpertNameAndEngineerId(QList<NodeMatrixInfo *> *nodeMatrixInfoList, QString expertName,
  50. int engineerId);
  51. /*根据专家名称和工程ID查询对应的节点信息--专家端*/
  52. bool QueryNodeMatrixListByExpertNameAndEngineerId2(QString expertName, int engineerId, QString tableMsg,
  53. QString mark, int tabIndex);
  54. bool QueryNodesByExpertNameAndEngineerId2(QList<NodeMatrixInfo *> *nodeMatrixInfoList, QString expertName,
  55. int engineerId, QString tableMsg, QString mark, int tabIndex);
  56. /*根据专家id和工程ID查询对应的节点信息*/
  57. bool QueryNodeMatrixListByExpertIdAndEngineerId(QList<NodeMatrixInfo *> *nodeMatrixInfoList, int expertId,
  58. int engineerId, QString tableMsg);
  59. /*判断专家是否已录入数据*/
  60. bool QueryNodeValueByUserIdAndEngineerId(int experId, int engineerId);
  61. /*根据专家id和工程ID查询对应的节点信息 ---专家端*/
  62. bool QueryNodeMatrixListByExpertIdAndEngineerId2(QList<NodeMatrixInfo *> *nodeMatrixInfoList, int expertId,
  63. int engineerId, QString tableMsg);
  64. /*根据专家编号查询对应的节点信息*/
  65. bool QueryNodeMatrixListByExpertId(QList<NodeMatrixInfo *> *nodeMatrixInfoList, int expertId);
  66. /*根据工程编号查询节点矩阵信息*/
  67. bool QueryNodeMatrixListByEngineerId(QList<NodeMatrixInfo *> *nodeMatrixInfoList, int engineerId);
  68. /*根据工程编号删除节点信息*/
  69. bool DeleteNodeMatrixListByEngineerId(int engineerId);
  70. /*根据专家姓名删除节点信息*/
  71. bool DeleteNodeMatrixListByExpertName(QString expertName);
  72. /*根据专家编号删除节点信息*/
  73. bool DeleteNodeMatrixListByExpertId(int expertId);
  74. //////////////////////节点矩阵信息表-end/////////////////////
  75. //////////////////////评估方案表-start////////////////////
  76. //添加信息
  77. bool AddPlanInfo(const PlanInfo &planInfo);
  78. /*修改评估方案信息*/
  79. bool UpdatePlanInfo(const PlanInfo &planInfo);
  80. /*根据评估方案id查询评估方案信息*/
  81. bool QueryPlanInfoById(PlanInfo *planInfo, int planId);
  82. /*根据列名称和列值模糊查询评估方案信息,列名称为实体类中的属性名称*/
  83. bool QueryPlanListByColumnAndColumnValue(QList<PlanInfo *> *planInfoList, QString columnName, QString columnValue);
  84. bool QueryPlanList(QList<PlanInfo *> *planInfoList);
  85. /*根据评估方案编号删除评估方案信息*/
  86. bool DeletePlanById(int planId);
  87. //////////////////////评估方案表-end////////////////////
  88. //////////////////////评估方案指标体系关系表-start////////////////////
  89. //添加信息
  90. // bool AddIndexSetPlanInfo(const IndexSetPlanInfo &planInfo);
  91. bool AddIndexSetPlanInfoList(const QList<IndexSetPlanInfo *> planInfoList);
  92. /*修改信息*/
  93. bool UpdateIndexSetPlanInfo(const IndexSetPlanInfo &planInfo);
  94. bool UpdateIndexSetPlanInfoList(const QList<IndexSetPlanInfo *> planInfoList);
  95. /*根据id查询信息*/
  96. bool QueryIndexSetPlanInfo(IndexSetPlanInfo *planInfo, int Id);
  97. /*根据列名称和列值模糊查询信息,列名称为实体类中的属性名称*/
  98. bool QueryIndexSetPlanListByColumnAndColumnValue(QList<IndexSetPlanInfo *> *planInfoList, QString columnName,
  99. QString columnValue);
  100. /*根据编号删除关联信息*/
  101. bool DeleteIndexSetPlanById(int Id);
  102. bool DeleteIndexSetPlanByPlanId(int planId);
  103. bool DeleteIndexSetPlanByIndexSetId(int indexSetId);
  104. //////////////////////评估方案指标体系关系表-end////////////////////
  105. };
  106. #endif // DBSERVICESET_H