SignListController.class.php
867 Bytes
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
<?php
/**
* 【后台】考勤列表导出接口
* user:蔡建华
* Date: 2017/8/29
* Time: 下午6:18
*/
namespace Apicp\Controller\Export;
use Common\Service\SignService;
class SignListController extends AbstractController
{
/** @var SignService 考勤签到表 */
protected $sign_service;
public function before_action($action = '')
{
if (!parent::before_action($action)) {
return false;
}
$this->sign_service = new SignService();
return true;
}
/**
* 【后台】考勤列表导出接口
*
* @author 蔡建华
* @param
*
* @return bool
*/
public function Index()
{
$params = I('post.');
// 考勤列表导出列表
$this->sign_service->sign_download_list($params,$this->_login->user);
return true;
}
}