41 lines
827 B
PHP
41 lines
827 B
PHP
<?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();
|
|
}
|
|
}
|