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