2db47680
hexiaodong
chore: 初始提交 php 遗...
|
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
|
<?php
namespace addons\antis\controller;
use addons\antis\model\OperationLog;
/**
* 操作记录
*/
class Operation extends StaffApi {
protected $noNeedLogin = [];
protected $noNeedRight = [];
//
public function getList() {
$relation_type = input('relation_type', '');//1客户 2联系人 3合同
$relation_id = input('relation_id', '');
if(empty($relation_type) || empty($relation_id)){
$this->error('参数不能为空');
}
//操作记录
$logs=OperationLog::where([
'relation_type' => $relation_type,
'relation_id' => $relation_id,
'operation_type' => 1
])->field('id,content,operation_id,createtime')->with(['staff'])->select();
$this->success('请求成功',$logs);
}
}
|