DouhuomallChangeLogEntity.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <?php
  2. namespace app\entity\data\douhuomall;
  3. use app\entity\data\DataEntity;
  4. class DouhuomallChangeLogEntity extends DataEntity
  5. {
  6. public $id = null; // 主键ID
  7. public $spuId = null; // spuID
  8. public $dataJson = null; // 历史数据信息
  9. public $effectProductJson = null; // 供应链sku_id
  10. public $createTime = null; // 记录时间
  11. /**
  12. * @return mixed
  13. */
  14. public function getId()
  15. {
  16. return $this->id;
  17. }
  18. /**
  19. * @param mixed $id
  20. * @return DouhuomallChangeLogEntity
  21. */
  22. public function setId($id): DouhuomallChangeLogEntity
  23. {
  24. $this->id = $id;
  25. return $this;
  26. }
  27. /**
  28. * @return mixed
  29. */
  30. public function getSpuId()
  31. {
  32. return $this->spuId;
  33. }
  34. /**
  35. * @param mixed $spuId
  36. * @return DouhuomallChangeLogEntity
  37. */
  38. public function setSpuId($spuId): DouhuomallChangeLogEntity
  39. {
  40. $this->spuId = $spuId;
  41. return $this;
  42. }
  43. /**
  44. * @return mixed
  45. */
  46. public function getDataJson()
  47. {
  48. return $this->dataJson;
  49. }
  50. /**
  51. * @param mixed $dataJson
  52. * @return DouhuomallChangeLogEntity
  53. */
  54. public function setDataJson($dataJson): DouhuomallChangeLogEntity
  55. {
  56. if (is_array($dataJson)) {
  57. $dataJson = json_encode($dataJson, JSON_UNESCAPED_UNICODE);
  58. }
  59. $this->dataJson = $dataJson;
  60. return $this;
  61. }
  62. /**
  63. * @return mixed
  64. */
  65. public function getEffectProductJson()
  66. {
  67. return $this->effectProductJson;
  68. }
  69. /**
  70. * @param mixed $effectProductJson
  71. * @return DouhuomallChangeLogEntity
  72. */
  73. public function setEffectProductJson($effectProductJson): DouhuomallChangeLogEntity
  74. {
  75. if (is_array($effectProductJson)) {
  76. $effectProductJson = json_encode($effectProductJson, JSON_UNESCAPED_UNICODE);
  77. }
  78. $this->effectProductJson = $effectProductJson;
  79. return $this;
  80. }
  81. /**
  82. * @return mixed
  83. */
  84. public function getCreateTime()
  85. {
  86. return $this->createTime;
  87. }
  88. /**
  89. * @param mixed $createTime
  90. * @return DouhuomallChangeLogEntity
  91. */
  92. public function setCreateTime($createTime): DouhuomallChangeLogEntity
  93. {
  94. $this->createTime = $createTime;
  95. return $this;
  96. }
  97. }