12345678910111213141516171819202122232425262728293031323334353637383940 |
- <?php
- namespace app\dao\work;
- use app\dao\BaseDao;
- use app\model\work\WorkMomentSendResult;
- use crmeb\traits\SearchDaoTrait;
- /**
- * Class WorkMomentSendResultDao
- * @package app\dao\work
- */
- class WorkMomentSendResultDao extends BaseDao
- {
- use SearchDaoTrait;
- /**
- * @return string
- */
- protected function setModel(): string
- {
- return WorkMomentSendResult::class;
- }
- /**
- * @param array $where
- * @param array|string[] $field
- * @return array
- * @throws \think\db\exception\DataNotFoundException
- * @throws \think\db\exception\DbException
- * @throws \think\db\exception\ModelNotFoundException
- */
- public function getMomentList(array $where, array $field = ['*'])
- {
- return $this->search($where)->field($field)->select()->toArray();
- }
- }
|