#ifndef DEMANDWEIGHTSERVICE_H #define DEMANDWEIGHTSERVICE_H #include "ClassSet.h" class DemandWeightService { public: DemandWeightService(QObject *parent = nullptr); /*单个节点信息新增*/ //添加信息 bool AddNodeWeightInfo(const DemandWeight &demandWeight); /*批量节点信息新增*/ bool AddNodeWeightInfoList(const QList &demandWeightList); /*修改节点值*/ bool UpdateNodeValue(const DemandWeight &demandWeight); /*批量修改节点值*/ bool UpdateNodeValueList(const QList demandWeightList); bool QueryByTableIndexAndTableMsg(int expertId, int engineerId, int tableIndex, QString tableMsg); bool QueryByTableIndexAndTableMsg(QString expertId, int engineerId, int tableIndex, QString tableMsg); bool QueryByTableIndexAndTableMsgAndPage(QString expertId, int engineerId, int tableIndex, QString tableMsg, int page); bool QueryByTableIndexAndTableMsg(QList *demandWeightList, int expertId, int engineerId, int tableIndex, QString tableMsg); bool QueryByTableIndexAndTableMsg(QList *demandWeightList, QString expertId, int engineerId, int tableIndex, QString tableMsg); bool QueryByPageIndexAndTableMsg(QList *demandWeightList, QString expertId, int engineerId, int pageIndex, QString tableMsg); bool updateValidByExperIdAndEngineerId(int expertId, int engineerId); bool QuerySecondDemandWeightByEngineerId(QList *demandWeightList, int expertId, int engineerId, QString tableMsg); bool QuerySecondDemandWeightByEngineerIdAndMaxPage(QList *demandWeightList, int expertId, int engineerId, QString tableMsg); bool QuerySecondDemandWeightByEngineerId(QList *demandWeightList, QString expertIds, int engineerId, QString tableMsg); bool QueryFirstDemandWeightByEngineerId(QList *demandWeightList, int expertId, int engineerId, QString tableMsg); bool QueryLastDemandWeightByEngineerId(QList *demandWeightList, int expertId, int engineerId, QString tableMsg, int tableIndex); bool QueryFirstDemandWeightByEngineerId(QList *demandWeightList, QString expertIds, int engineerId, QString tableMsg); bool QueryLastPageDemandWeightByEngineerId(QList *demandWeightList, QString expertIds, int engineerId, QString tableMsg, int page); }; #endif // DEMANDWEIGHTSERVICE_H