CommonChooseService.class.php
1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
/**
* CommonChooseService.class.php
* 选人记录表
* @author: 原习斌
* @date :2016-09-02
*/
namespace Common\Service;
use Common\Model\CommonChooselogModel;
class CommonChooseService extends AbstractService
{
// 构造方法
public function __construct()
{
parent::__construct();
$this->_d = new CommonChooselogModel();
}
/**
* 获取常用人员
*
* @param string $eaID 管理员ID
* @param int|array $page_option 分页参数
* @param array $condition 查询参数
* @return array
*/
public function get_often_used($eaID, $condition = array(), $page_option = null)
{
return $this->_d->get_often_used($eaID, $condition, $page_option);
}
/**
* 获取常用人员的数量
* @param array $condition 查询参数
* @param string $eaID 管理员ID
* @return int
*/
public function count_for_often_used($eaID, $condition = array())
{
return $this->_d->count_for_often_used($eaID, $condition);
}
}