CustomtaskService.class.php
1.13 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
50
51
52
53
<?php
/**
* Created by PhpStorm.
* User: liyifei2012it
* Date: 17/5/18
* Time: 11:36
*/
namespace Common\Service;
use Common\Model\CustomtaskModel;
class CustomtaskService extends AbstractService
{
// 构造方法
public function __construct()
{
parent::__construct();
$this->_d = new CustomtaskModel();
}
/**
* 统计需要提醒的总数
* @param $conds
* @return mixed
*/
public function countReminder($conds)
{
return $this->_d->countWithOutDomain($conds);
}
/**
* 查询需要提醒的任务
* @param $conds
* @param null $pageOption
* @param array $orderOption
* @param string $field
* @return array|bool
*/
public function listReminder($conds, $pageOption = null, $orderOption = [], $field = '*')
{
return $this->_d->listWithOutDomian($conds, $pageOption, $orderOption, $field);
}
/**
* 增加完成数
* @param $customtaskId
* @return mixed
*/
public function addCompleteTotal($customtaskId)
{
return $this->_d->addCompleteTotal($customtaskId);
}
}