ListController.class.php
1.03 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
<?php
/**
* Created by PhpStorm.
* User: tangxingguo
* Date: 2016/12/21
* Time: 13:32
*/
namespace Apicp\Controller\Contract;
use Common\Service\ContractService;
class ListController extends AbstractController
{
/**
* 【通讯录】合同信息列表
* @author tangxingguo
* @time 2016-12-21 13:34:06
*/
public function Index_post()
{
// 接收参数
$keyword = I('post.keyword', '', 'trim');
$signing_type = I('post.signing_type', '', 'trim');
$page = I('post.page', 1, 'intval');
$limit = I('post.limit', 10, 'intval');
$dpids = I('post.dp_ids');
$ContractServ = new ContractService();
// 取合同信息列表
$contractList = $ContractServ->getContractList($keyword, $dpids, $signing_type, $page, $limit);
$result = [
'page' => $page,
'limit' => $limit,
'total' => $contractList['total'],
'list' => $contractList['list'],
];
$this->_result = $result;
}
}