VisitLogic.php
951 字节
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
namespace App\Http\Logic\Bside;
use App\Http\Logic\Logic;
use App\Models\Visit\Visit;
use App\Models\Visit\VisitItem;
/**
* Class VisitLogic
* @package App\Http\Logic\Bside
* @author zbj
* @date 2023/5/22
*/
class VisitLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->param = $this->requestAll;
$this->model = new Visit();
}
public function getVisitList($map,$page,$row,$order,$filed = ['*'])
{
$map['domain'] = $this->user['domain'];
$lists = $this->model->lists($map,$page,$row,$order,$filed);
return $this->success($lists);
}
public function getItemList(){
$this->model = new VisitItem();
$map = [
'customer_visit_id' => $this->param['id'],
'domain' => $this->user['domain'],
];
$data = $this->model->list($map);
return $this->success($data);
}
}