hblastrecorddet.cpp 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #include "hblastrecorddet.h"
  2. HBlastRecordDet::HBlastRecordDet(QObject *parent) : QObject(parent) {
  3. // 可以在这里进行一些初始化操作
  4. }
  5. qint64 HBlastRecordDet::getId() const { return id; }
  6. void HBlastRecordDet::setId(qint64 newId) { id = newId; }
  7. QString HBlastRecordDet::getUuid() const { return uuid; }
  8. void HBlastRecordDet::setUuid(const QString &newUuid) { uuid = newUuid; }
  9. QString HBlastRecordDet::getOutCode() const { return outCode; }
  10. void HBlastRecordDet::setOutCode(const QString &newOutCode) { outCode = newOutCode; }
  11. QString HBlastRecordDet::getInnerCode() const { return innerCode; }
  12. void HBlastRecordDet::setInnerCode(const QString &newInnerCode) { innerCode = newInnerCode; }
  13. QString HBlastRecordDet::getUid() const { return uid; }
  14. void HBlastRecordDet::setUid(const QString &newUid) { uid = newUid; }
  15. QString HBlastRecordDet::getStatus() const { return status; }
  16. void HBlastRecordDet::setStatus(const QString &newStatus) { status = newStatus; }
  17. QString HBlastRecordDet::getFreq() const { return freq; }
  18. void HBlastRecordDet::setFreq(const QString &newFreq) { freq = newFreq; }
  19. QString HBlastRecordDet::getDelayTime() const { return delayTime; }
  20. void HBlastRecordDet::setDelayTime(const QString &newDelayTime) { delayTime = newDelayTime; }
  21. QString HBlastRecordDet::getTag() const { return tag; }
  22. void HBlastRecordDet::setTag(const QString &newTag) { tag = newTag; }
  23. QString HBlastRecordDet::getBlastRecordId() const { return blastRecordId; }
  24. void HBlastRecordDet::setBlastRecordId(QString newBlastRecordId) {
  25. blastRecordId = newBlastRecordId;
  26. }
  27. QString HBlastRecordDet::getRegId() const { return regId; }
  28. void HBlastRecordDet::setRegId(QString newRegId) { regId = newRegId; }
  29. QDateTime HBlastRecordDet::getCreatedAt() const { return createdAt; }
  30. void HBlastRecordDet::setCreatedAt(const QDateTime &newCreatedAt) { createdAt = newCreatedAt; }
  31. QDateTime HBlastRecordDet::getUpdatedAt() const { return updatedAt; }
  32. void HBlastRecordDet::setUpdatedAt(const QDateTime &newUpdatedAt) { updatedAt = newUpdatedAt; }
  33. QDateTime HBlastRecordDet::getDeletedAt() const { return deletedAt; }
  34. void HBlastRecordDet::setDeletedAt(const QDateTime &newDeletedAt) { deletedAt = newDeletedAt; }
  35. qint64 HBlastRecordDet::getCreateBy() const { return createBy; }
  36. void HBlastRecordDet::setCreateBy(qint64 newCreateBy) { createBy = newCreateBy; }
  37. qint64 HBlastRecordDet::getUpdateBy() const { return updateBy; }
  38. void HBlastRecordDet::setUpdateBy(qint64 newUpdateBy) { updateBy = newUpdateBy; }
  39. QJsonObject HBlastRecordDet::ToJson() {
  40. QJsonObject jsonObject;
  41. // jsonObject["id"] = this->getId();
  42. jsonObject["uuid"] = this->getUuid();
  43. jsonObject["out_code"] = this->getOutCode();
  44. jsonObject["in_code"] = this->getInnerCode();
  45. jsonObject["uid"] = this->getUid();
  46. jsonObject["status"] = this->getStatus();
  47. jsonObject["freq"] = this->getFreq();
  48. jsonObject["delay_time"] = this->getDelayTime();
  49. jsonObject["tag"] = this->getTag();
  50. jsonObject["blast_record_id"] = this->getBlastRecordId().toInt();
  51. jsonObject["reg_id"] = this->getRegId();
  52. jsonObject["created_at"] = this->getCreatedAt().toString(Qt::ISODateWithMs);
  53. jsonObject["updated_at"] = this->getUpdatedAt().toString(Qt::ISODateWithMs);
  54. jsonObject["deleted_at"] = this->getDeletedAt().toString(Qt::ISODateWithMs);
  55. jsonObject["create_by"] = this->getCreateBy();
  56. jsonObject["update_by"] = this->getUpdateBy();
  57. return jsonObject;
  58. }