WorkMomentSendResultDao.php 827 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace app\dao\work;
  3. use app\dao\BaseDao;
  4. use app\model\work\WorkMomentSendResult;
  5. use crmeb\traits\SearchDaoTrait;
  6. /**
  7. * Class WorkMomentSendResultDao
  8. * @package app\dao\work
  9. */
  10. class WorkMomentSendResultDao extends BaseDao
  11. {
  12. use SearchDaoTrait;
  13. /**
  14. * @return string
  15. */
  16. protected function setModel(): string
  17. {
  18. return WorkMomentSendResult::class;
  19. }
  20. /**
  21. * @param array $where
  22. * @param array|string[] $field
  23. * @return array
  24. * @throws \think\db\exception\DataNotFoundException
  25. * @throws \think\db\exception\DbException
  26. * @throws \think\db\exception\ModelNotFoundException
  27. */
  28. public function getMomentList(array $where, array $field = ['*'])
  29. {
  30. return $this->search($where)->field($field)->select()->toArray();
  31. }
  32. }