You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WorkMomentSendResultDao.php 827B

2 years ago
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. }