DemandWeightService.h 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef DEMANDWEIGHTSERVICE_H
  2. #define DEMANDWEIGHTSERVICE_H
  3. #include "ClassSet.h"
  4. class DemandWeightService
  5. {
  6. public:
  7. DemandWeightService(QObject *parent = nullptr);
  8. /*单个节点信息新增*/
  9. //添加信息
  10. bool AddNodeWeightInfo(const DemandWeight &demandWeight);
  11. /*批量节点信息新增*/
  12. bool AddNodeWeightInfoList(const QList<DemandWeight *> &demandWeightList);
  13. /*修改节点值*/
  14. bool UpdateNodeValue(const DemandWeight &demandWeight);
  15. /*批量修改节点值*/
  16. bool UpdateNodeValueList(const QList<DemandWeight *> demandWeightList);
  17. bool QueryByTableIndexAndTableMsg(int expertId, int engineerId, int tableIndex, QString tableMsg);
  18. bool QueryByTableIndexAndTableMsg(QString expertId, int engineerId, int tableIndex, QString tableMsg);
  19. bool QueryByTableIndexAndTableMsgAndPage(QString expertId, int engineerId, int tableIndex, QString tableMsg,
  20. int page);
  21. bool QueryByTableIndexAndTableMsg(QList<DemandWeight *> *demandWeightList, int expertId, int engineerId,
  22. int tableIndex, QString tableMsg);
  23. bool QueryByTableIndexAndTableMsg(QList<DemandWeight *> *demandWeightList, QString expertId, int engineerId,
  24. int tableIndex, QString tableMsg);
  25. bool QueryByPageIndexAndTableMsg(QList<DemandWeight *> *demandWeightList, QString expertId, int engineerId,
  26. int pageIndex, QString tableMsg);
  27. bool updateValidByExperIdAndEngineerId(int expertId, int engineerId);
  28. bool QuerySecondDemandWeightByEngineerId(QList<DemandWeight *> *demandWeightList, int expertId, int engineerId,
  29. QString tableMsg);
  30. bool QuerySecondDemandWeightByEngineerIdAndMaxPage(QList<DemandWeight *> *demandWeightList, int expertId,
  31. int engineerId, QString tableMsg);
  32. bool QuerySecondDemandWeightByEngineerId(QList<DemandWeight *> *demandWeightList, QString expertIds, int engineerId,
  33. QString tableMsg);
  34. bool QueryFirstDemandWeightByEngineerId(QList<DemandWeight *> *demandWeightList, int expertId, int engineerId,
  35. QString tableMsg);
  36. bool QueryLastDemandWeightByEngineerId(QList<DemandWeight *> *demandWeightList, int expertId, int engineerId,
  37. QString tableMsg, int tableIndex);
  38. bool QueryFirstDemandWeightByEngineerId(QList<DemandWeight *> *demandWeightList, QString expertIds, int engineerId,
  39. QString tableMsg);
  40. bool QueryLastPageDemandWeightByEngineerId(QList<DemandWeight *> *demandWeightList, QString expertIds,
  41. int engineerId, QString tableMsg, int page);
  42. };
  43. #endif // DEMANDWEIGHTSERVICE_H