UserService.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef USERSERVICE_H
  2. #define USERSERVICE_H
  3. #include "ClassSet.h"
  4. class UserService
  5. {
  6. public:
  7. explicit UserService(QObject *parent = nullptr);
  8. //添加信息
  9. int AddUserInfo(const QFUser &userInfo);
  10. /*修改用户信息*/
  11. bool UpdateUserInfo(const QFUser &userInfo);
  12. bool UpdateUserPassword(QString userNo, QString password);
  13. bool UpdateUserById(QString userNo, QString password, int id);
  14. /*根据用户id查询用户信息*/
  15. bool QueryUserInfoById(QFUser *userInfo, int userId);
  16. bool QueryUserInfoByUnserInfo(const QFUser &paramInfo, QFUser &queryInfo);
  17. // int QueryUserInfoByUserNoAndPhone(QString);
  18. /*根据列名称和列值模糊查询用户信息,列名称为实体类中的属性名称*/
  19. bool QueryUserListByColumnAndColumnValue(QList<QFUser *> *userInfoList, QString columnName, QString columnValue);
  20. bool QueryUserList(QList<QFUser *> *userInfoList);
  21. bool QueryUserListNotAdmin(QList<QFUser *> *userInfoList);
  22. /*根据用户编号删除用户信息*/
  23. bool DeleteUserById(int Id);
  24. bool QueryUserByNoAndPassword(QFUser *userInfo, QString userNo, QString password);
  25. bool QueryUserByNo(QFUser *userInfo, QString userNo);
  26. /*获取工程用户列表*/
  27. bool QueryUserListByEngineerId(QList<QFUser> &userInfoList, int engineerId);
  28. //删除除管理管外的所有用户
  29. bool DeleteUserByRole(int roleType);
  30. //专家本地库查询信息
  31. bool QueryUserInfoById2(QFUser *userInfo, int userId);
  32. bool UpdateUserInfo2(const QFUser &userInfo);
  33. int AddUserInfo2(const QFUser &userInfo);
  34. bool DeleteAllUser();
  35. };
  36. #endif // USERSERVICE_H