PromotionMonitorStatistics.php 831 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. namespace app\store\model;
  3. use app\common\model\PromotionMonitorStatistics as PromotionMonitorStatisticsModel;
  4. /**
  5. * 推广监控统计模型
  6. * @package app\store\model
  7. */
  8. class PromotionMonitorStatistics extends PromotionMonitorStatisticsModel
  9. {
  10. public function getList()
  11. {
  12. return [];
  13. }
  14. /**
  15. * 新增记录
  16. * @param array $data
  17. * @return bool
  18. */
  19. public function add(array $data)
  20. {
  21. $this->transaction(function () use ($data) {
  22. $this->save($data);
  23. });
  24. return true;
  25. }
  26. /**
  27. * 更新记录
  28. * @param array $data
  29. * @return bool
  30. */
  31. public function edit(array $data)
  32. {
  33. $this->transaction(function () use ($data) {
  34. $this->save($data);
  35. });
  36. return true;
  37. }
  38. }