Newer
Older
CasicIrisIdentify / dao / SysPersonDao.h
#ifndef SYSPERSONDAO_H
#define SYSPERSONDAO_H

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

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

    QVector<QVariantMap> findAllRecord();
    QVariantMap findRecordById(QString id);

    int findRecordCountByNameAndDept(QString name, QString dept);
    QVector<QVariantMap> findRecordsByNameAndDept(QString name, QString dept, qint8 limit, qint16 offset);
    QVector<QVariantMap> findRecordsByProperties(QVariantMap conditions);

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

};

#endif // SYSPERSONDAO_H