hblastrecorddet.cpp 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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::getBlastRecordUuid() const { return blastRecordUUID; }
  24. void HBlastRecordDet::setBlastRecordUuid(QString newBlastRecordId) { blastRecordUUID = newBlastRecordId; }
  25. QString HBlastRecordDet::getEquipmentRecordUuid() const { return equipmentRecordUUID; }
  26. void HBlastRecordDet::setEquipmentRecordUuid(QString newRegId) { equipmentRecordUUID = newRegId; }
  27. QDateTime HBlastRecordDet::getCreatedAt() const { return createdAt; }
  28. void HBlastRecordDet::setCreatedAt(const QDateTime &newCreatedAt) { createdAt = newCreatedAt; }
  29. QDateTime HBlastRecordDet::getUpdatedAt() const { return updatedAt; }
  30. void HBlastRecordDet::setUpdatedAt(const QDateTime &newUpdatedAt) { updatedAt = newUpdatedAt; }
  31. QDateTime HBlastRecordDet::getDeletedAt() const { return deletedAt; }
  32. void HBlastRecordDet::setDeletedAt(const QDateTime &newDeletedAt) { deletedAt = newDeletedAt; }
  33. qint64 HBlastRecordDet::getCreateBy() const { return createBy; }
  34. void HBlastRecordDet::setCreateBy(qint64 newCreateBy) { createBy = newCreateBy; }
  35. qint64 HBlastRecordDet::getUpdateBy() const { return updateBy; }
  36. void HBlastRecordDet::setUpdateBy(qint64 newUpdateBy) { updateBy = newUpdateBy; }
  37. QJsonObject HBlastRecordDet::ToJson() {
  38. QJsonObject jsonObject;
  39. // jsonObject["id"] = this->getId();
  40. jsonObject["uuid"] = this->getUuid();
  41. jsonObject["out_code"] = this->getOutCode();
  42. jsonObject["in_code"] = this->getInnerCode();
  43. jsonObject["uid"] = this->getUid();
  44. jsonObject["status"] = this->getStatus();
  45. jsonObject["freq"] = this->getFreq();
  46. jsonObject["delay_time"] = this->getDelayTime();
  47. jsonObject["tag"] = this->getTag();
  48. jsonObject["blast_record_id"] = this->getBlastRecordUuid();
  49. jsonObject["reg_id"] = this->getEquipmentRecordUuid();
  50. jsonObject["created_at"] = this->getCreatedAt().toString(Qt::ISODateWithMs);
  51. jsonObject["updated_at"] = this->getUpdatedAt().toString(Qt::ISODateWithMs);
  52. jsonObject["deleted_at"] = this->getDeletedAt().toString(Qt::ISODateWithMs);
  53. jsonObject["create_by"] = this->getCreateBy();
  54. jsonObject["update_by"] = this->getUpdateBy();
  55. return jsonObject;
  56. }