Commit 8706d06f authored by hujun's avatar hujun

楼盘修改日志

parent 2abc594b
......@@ -321,4 +321,25 @@ class OfficeRoom extends Basic
return $this->response($this->code, $this->msg, $this->data);
}
/**
* 楼盘修改日志
*
* @return \think\Response
*/
public function getEditLog() {
if (empty($this->params['house_id'])) {
return $this->response(101, '参数错误');
}
$msg = '';
$data = $this->service->getEditLog($this->params['house_id']);
if ($data['status'] == 'successful') {
$code = 200;
} else {
$code = 101;
$msg = '获取数据失败'.$data['msg'];
}
return $this->response($code, $msg, $data['data']);
}
}
\ No newline at end of file
......@@ -1641,4 +1641,24 @@ class OfficeRoomService
return ;
}
/**
* 楼盘修改日志
*s
* @param $house_id
* @return mixed
*/
public function getEditLog($house_id) {
try {
$m_operating = new OfficeGOperatingRecord();
$result['data'] = $m_operating->getList(1, 1000, 'id DESC','agent_id,name,remark,create_time',['house_id'=>$house_id]);
$result['status'] = 'successful';
} catch (\Exception $e) {
$result['status'] = 'fail';
$result['msg'] = $e->getMessage();
$result['data'] = [];
}
return $result;
}
}
\ No newline at end of file
......@@ -1131,6 +1131,7 @@ Route::group('office_index', [
'selectDistrictPerformance' => ['index/OfficePerformance/selectDistrictPerformance', ['method' => 'GET|POST']],//区域业绩排行
'selectStorePerformance' => ['index/OfficePerformance/selectStorePerformance', ['method' => 'GET|POST']],//门店排行
'selectIndividualPerformance' => ['index/OfficePerformance/selectIndividualPerformance', ['method' => 'GET|POST']],//个人业绩排行
'getEditLog' => ['index/OfficeRoom/getEditLog', ['method' => 'get']],//楼盘修改日志
]);
Route::group('office_api', [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment