Newer
Older
WorkCardReader / dao / PersonDao.h
tanyue on 18 Jun 2022 574 bytes 20220618 界面调整
#ifndef PERSONDAO_H
#define PERSONDAO_H

#include <QObject>
#include "BaseDao.h"

class PersonDao : public BaseDao
{
    Q_OBJECT
public:
    explicit PersonDao(QObject *parent = nullptr);

    QVector<QVariantMap> findAllRecord();
    QVariantMap findRecordById(QString id);
    QVariantMap findRecordByIdWithoutValid(QString id);
    QVector<QVariantMap> findRecordsByProperty(QString properName, QVariant properValue);

    QString save(QVariantMap object);
    bool edit(QVariantMap newObject, QString id);
    bool dele(QString id);
signals:

};

#endif // PERSONDAO_H